/* ============================= */
/* GLOBAL FIX (WAJIB) */
/* ============================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================= */
/* SIDEBAR */
/* ============================= */

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #2f4050;
    color: white;
    position: fixed;
}

.sidebar-logo {
    width: 100%;
    padding: 10px;
}

.sidebar-logo img {
    width: 100%;
    height: auto;
}

.menu-title {
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

.nav-link {
    color: #ddd;
    padding: 10px 20px;
    display: block;
}

.nav-link:hover {
    background-color: #1ab394;
    color: white;
}

.nav-link.active {
    background-color: #1ab394;
    color: white;
    font-weight: bold;
}

/* ============================= */
/* LOGIN & REGISTER */
/* ============================= */

body.login-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    background: linear-gradient(to right, #00b09b, #96c93d);

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* BOX LOGIN */
.login-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    width: 320px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;

    animation: fadeIn 0.6s ease-in-out;
}

/* TITLE */
.login-box h2 {
    margin-bottom: 5px;
}

/* SUBTITLE */
.subtitle {
    font-size: 12px;
    color: #777;
    margin-bottom: 20px;
}

/* INPUT */
.login-box input,
.login-box select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;

    border: 1px solid #ccc;
    border-radius: 6px;

    transition: 0.3s;
}

/* FOCUS */
.login-box input:focus {
    border-color: #7b5fc6;
    outline: none;
    box-shadow: 0 0 6px rgba(123,95,198,0.3);
}

/* BUTTON */
.login-box button {
    width: 100%;
    padding: 10px;

    background: linear-gradient(to right, #7b5fc6, #6a4fc2);
    color: white;

    border: none;
    border-radius: 6px;

    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover {
    background: linear-gradient(to right, #6848c2, #5a3fc0);
}

/* TEXT BAWAH */
.bottom-text {
    margin-top: 15px;
    font-size: 13px;
}

.bottom-text a {
    color: #6a4fc2;
    text-decoration: none;
}

.bottom-text a:hover {
    text-decoration: underline;
}

/* ============================= */
/* PASSWORD FIX (ANTI MODOT 💣) */
/* ============================= */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding: 10px;
    padding-right: 45px; /* ruang icon */

    margin: 10px 0;

    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ICON */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    
    cursor: pointer;
    font-size: 16px;
    color: #777;
    opacity: 0.7;
}

.toggle-password:hover {
    color: #333;
    opacity: 1;
}

/* ============================= */
/* ANIMATION */
/* ============================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}