* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-soft);
}

/* WRAPPER */
.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-6);
}

/* CARD */
.login-card {
    width: 920px;
    max-width: 100%;
    min-height: 560px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow);
    animation: cardFadeIn 0.6s ease-out;
}

.register-links {
    text-align: center;
    margin-top: var(--space-3);
    font-size: var(--fs-xs);
}

.register-links a {
    color: var(--muted);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}

.register-links a:hover {
    text-decoration: underline;
}

.divider {
    color: var(--border);
    margin: 0 var(--space-2);
}

/* === VARIAN REVERSED: Poster kiri, Form kanan (dipakai di Register) === */
.login-card.reversed {
    flex-direction: row-reverse;
}

.login-card.reversed .login-right {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

@media (max-width: 900px) {
    .login-card.reversed {
        flex-direction: column;
    }

    .login-card.reversed .login-right {
        border-radius: 0;
    }
}

@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        min-height: auto;
    }
}

/* LEFT SIDE - FORM */
.login-left {
    width: 58%;
    padding: var(--space-12) var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .login-left {
        width: 100%;
        padding: var(--space-10) var(--space-8);
    }
}

.login-left h1 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.subtitle {
    color: var(--muted);
    font-size: var(--fs-xs);
    margin-bottom: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.form-group input {
    width: 100%;
    height: 46px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 var(--space-4);
    font-size: var(--fs-xs);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--muted-light);
}

/* PASSWORD FIELD */
.password-box {
    position: relative;
}

.password-box input {
    padding-right: var(--space-12);
}

.password-box .eye-button {
    position: absolute;
    top: 50%;
    right: var(--space-4);
    left: auto ;
    bottom: auto ;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.password-box .eye-button svg {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* LOGIN BUTTON */
.login-button {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    color: var(--bg);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    font-family: inherit;
    cursor: pointer;
    margin-top: var(--space-2);
    transition: opacity 0.2s;
}

.register-text {
    margin-top: var(--space-5);
    text-align: center;
    color: var(--muted);
    font-size: var(--fs-xxs);
}

.register-text a {
    margin-top: var(--space-5);
    text-align: center;
    color: var(--primary);
    font-size: var(--fs-xxs);
    font-weight: var(--fw-semibold);
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

/* RIGHT SIDE - WELCOME PANEL */
.login-right {
    width: 42%;
    padding: var(--space-10) var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--bg);
    /* Gradient dekoratif — tidak ada token navy-blue di global.css, sengaja dibiarkan custom */
    background: linear-gradient(180deg, #3d6dc4 0%, #0051d8 55%, #0d2c67 100%);
}

@media (max-width: 900px) {
    .login-right {
        width: 100%;
        padding: var(--space-8) var(--space-8);
    }
}

.login-right h2 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    color: var(--muted)
    margin-bottom: var(--space-3);
}

.description {
    font-size: var(--fs-xs);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-6);
}

/* quote */
.quote-box {
    margin-top: var(--space-3);
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.quote-icon {
    font-size: var(--fs-xxl);
    color: rgba(255, 255, 255, .4);
    line-height: 1;
}

.quote-text {
    margin: var(--space-4) 0 var(--space-5);
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: var(--bg);
    font-style: italic;
}

.quote-author {
    display: block;
    text-align: right;
    color: rgba(255, 255, 255, .85);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
}

/* =========================================================
   VERIFY EMAIL & ALERT SPECIFIC STYLES
   ========================================================= */

/* Alert Sukses (Pesan Pengiriman Email) */
.alert-success {
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: var(--radius-md);
    color: #047857;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

/* Box Teks Tampilan Informasi */
.verify-info-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--fs-xs);
    color: var(--muted);
    line-height: 1.6;
}

/* Tata Letak Tombol Aksi */
/* ACTION GROUP (Tombol Resend & Logout) */
.action-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
    margin-top: var(--space-4, 16px);
}

.action-group form {
    width: 100%;
}

.action-group .login-button {
    width: 100%;
    margin-top: 0; /* Menghilangkan margin bawaan login-button */
}

.btn-logout-wrapper {
    text-align: center;
    margin-top: var(--space-2, 8px);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-logout:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* Tambahan Responsif Mobile (≤576px) */
@media (max-width: 576px) {
    .action-group {
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* =========================================================
   MOBILE FIX — HP kecil, ≤576px
   Panel kanan (welcome + quote) disembunyikan total di mobile,
   yang tersisa cuma form login/register.
   ========================================================= */
@media (max-width: 576px) {
    .login-wrapper {
        padding: var(--space-8);
    }

    .login-card,
    .login-card.reversed {
        border-radius: var(--radius);
        box-shadow: var(--shadow-card);
    }

    .login-left,
    .login-card.reversed .login-left {
        padding: var(--space-8) var(--space-6);
    }

    .login-left h1 {
        font-size: var(--fs-md);
    }

    /* Panel kanan (judul, deskripsi, quote) disembunyikan di mobile */
    .login-right {
        display: none;
    }

    .subtitle {
        font-size: var(--fs-xxs);
        margin-bottom: var(--space-5);
    }

    .form-group input {
        height: 44px;
        font-size: var(--fs-xs);
        padding: 0 var(--space-4);
    }

    .password-box input {
        padding-right: var(--space-10);
    }

    .login-button {
        height: 44px;
        font-size: var(--fs-xs);
    }

    .register-links,
    .register-text {
        font-size: var(--fs-xxs);
    }
}