/* ==========================================================================
   SIKEU BUMDes — Modern Split-Screen Authentication Layout
   ========================================================================== */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: #fff;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    color: #ecfdf5;
    padding: 44px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    background:
        radial-gradient(1100px 560px at -10% -15%, rgba(16, 185, 129, 0.38), transparent 60%),
        radial-gradient(800px 480px at 115% 115%, rgba(14, 165, 233, 0.16), transparent 60%),
        linear-gradient(160deg, #064e3b 0%, #022c22 100%);
}
.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
.auth-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -200px;
    border-radius: 50%;
    border: 1px solid rgba(167, 243, 208, 0.12);
    box-shadow: 0 0 0 60px rgba(167, 243, 208, 0.03), 0 0 0 120px rgba(167, 243, 208, 0.02);
    pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-ministry {
    display: flex;
    align-items: center;
    gap: 14px;
}
.auth-ministry-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.auth-ministry-text small {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6ee7b7;
}
.auth-ministry-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    margin-top: 2px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(167, 243, 208, 0.25);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 500;
    color: #d1fae5;
    margin-bottom: 20px;
}
.auth-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}
.auth-hero h1 {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: #fff;
}
.auth-hero h1 span { color: #6ee7b7; }
.auth-hero p {
    margin: 0;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(236, 253, 245, 0.72);
}

.auth-features {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 460px;
}
.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(236, 253, 245, 0.85);
}
.auth-features .feat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(167, 243, 208, 0.18);
    color: #6ee7b7;
}
.auth-features .feat-icon svg { width: 16px; height: 16px; }
.auth-features strong { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.auth-features span { font-size: 12.5px; color: rgba(236, 253, 245, 0.6); }

.auth-brand-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(236, 253, 245, 0.55);
}

.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    background: #fff;
}
.auth-form-wrap {
    width: 100%;
    max-width: 384px;
}
.auth-mobile-logo { display: none; }

.auth-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.auth-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}
.auth-subtitle strong { color: var(--text); font-weight: 600; }

.auth-field { margin-bottom: 18px; }
.auth-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.auth-input { position: relative; }
.auth-input .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.15s;
}
.auth-input:focus-within .icon { color: var(--primary); }
.auth-input input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 43px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-subtle);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-input input::placeholder { color: #94a3b8; }
.auth-input input:hover { border-color: var(--border-strong); }
.auth-input input:focus {
    outline: none;
    background: #fff;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.auth-toggle-pass {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-toggle-pass:hover { background: #f1f5f9; color: #334155; }
.auth-toggle-pass svg { width: 18px; height: 18px; }

.auth-capslock {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #b45309;
}
.auth-capslock.show { display: block; }

.btn-auth {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 1px 2px rgba(4, 120, 87, 0.3), 0 10px 22px -8px rgba(4, 120, 87, 0.55);
    transition: transform 0.15s, filter 0.15s;
}
.btn-auth:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { cursor: wait; opacity: 0.85; transform: none; }
.btn-auth svg { width: 17px; height: 17px; }
.btn-auth .spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}
.btn-auth.is-loading .spinner { display: inline-block; }
.btn-auth.is-loading .arrow { display: none; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.auth-secure svg { width: 15px; height: 15px; color: #10b981; }

.auth-foot {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
}

.auth-main .alert { font-size: 13px; }

@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-main {
        min-height: 100vh;
        background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 300px);
    }
    .auth-mobile-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
    }
    .auth-mobile-logo img {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #fff;
        padding: 2px;
        box-shadow: 0 6px 18px rgba(4, 120, 87, 0.18);
    }
    .auth-mobile-logo small {
        display: block;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--primary);
    }
    .auth-mobile-logo strong {
        display: block;
        font-size: 13px;
        color: var(--text);
        line-height: 1.35;
    }
}
