/* =========================================
   LOGIN PAGE - MODERN GLASS DESIGN
========================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

.auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px 20px;

    /* Ganti path sesuai lokasi gambar background */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.15),
            rgba(239, 246, 255, 0.25)
        ),
        url('../img/bg-login.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =========================================
   LOGIN CARD
========================================= */

.auth-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 450px;

    padding: 36px 34px;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.18),
        0 8px 20px rgba(37, 99, 235, 0.08);
}

/* =========================================
   LOGO
========================================= */

.auth-logo {
    width: 80px;
    height: 80px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    box-shadow: none;
    border-radius: 14px;
}

.auth-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================
   HEADER
========================================= */

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-header h2 {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.auth-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 7px;
    line-height: 1.6;
}

/* =========================================
   ROLE TABS
========================================= */

.role-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;

    margin-bottom: 24px;
    padding: 5px;

    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 13px;
}

.role-tab {
    min-height: 42px;
    padding: 9px 5px;

    border: none;
    border-radius: 10px;

    background: transparent;

    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;

    cursor: pointer;
    transition: all 0.2s ease;
}

.role-tab.active {
    background: #ffffff;
    color: #2563eb;

    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}

/* =========================================
   INPUT
========================================= */

.auth-card .input-control {
    width: 100%;
    min-height: 48px;

    padding: 12px 15px;

    border: 1px solid #cbd5e1;
    border-radius: 12px;

    background: #f8fafc;

    color: #0f172a;
    font-size: 0.95rem;

    transition: all 0.2s ease;
}

.auth-card .input-control:focus {
    outline: none;

    background: #ffffff;
    border-color: #2563eb;

    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Hilangkan warna kuning autofill browser */

.auth-card .input-control:-webkit-autofill,
.auth-card .input-control:-webkit-autofill:hover,
.auth-card .input-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    transition: background-color 9999s ease-in-out 0s;
}

/* =========================================
   PASSWORD TOGGLE
========================================= */

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap .input-control {
    padding-right: 48px;
}

.toggle-password-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: transparent;
    color: #64748b;

    cursor: pointer;
}

/* =========================================
   BUTTON LOGIN
========================================= */

.auth-card .btn-primary {
    width: 100%;
    min-height: 50px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    color: #ffffff;

    font-size: 0.96rem;
    font-weight: 700;

    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);

    transition: all 0.2s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);

    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

/* =========================================
   FOOTER
========================================= */

.auth-footer {
    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid #e2e8f0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    color: #64748b;
    font-size: 0.86rem;
}

.auth-footer a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 480px) {

    .auth-body {
        padding: 20px 15px;

        background-attachment: scroll;
        background-position: center center;
    }

    .auth-card {
        max-width: 100%;
        padding: 28px 21px;

        border-radius: 20px;
    }

    .auth-logo {
        width: 68px;
        height: 68px;
        margin-bottom: 15px;
    }

    .auth-header {
        margin-bottom: 22px;
    }

    .auth-header h2 {
        font-size: 1.25rem;
    }

    .auth-header p {
        font-size: 0.84rem;
    }

    .role-tabs {
        margin-bottom: 20px;
    }

    .role-tab {
        font-size: 0.79rem;
    }

    .auth-card .input-control {
        min-height: 48px;
        font-size: 16px;
    }

    .auth-card .btn-primary {
        min-height: 48px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .auth-card {
        padding: 24px 17px;
    }

    .auth-logo {
        width: 60px;
        height: 60px;
    }

    .role-tab {
        font-size: 0.73rem;
        padding: 8px 3px;
    }
}