/* Kartu auth kompak bersama untuk login & lupa password (S17).
   Satu kartu di tengah, palet biru SIMPATI, responsif hingga 320px. */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-body {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f8fafc;
    color: #17243b;
    font-family: 'Inter', Arial, sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 58, 152, .08);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    text-align: center;
}

.auth-brand img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.auth-brand h1 {
    color: #142b55;
    font-size: 20px;
    font-weight: 700;
}

.auth-brand p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.auth-title {
    margin-bottom: 6px;
    color: #142b55;
    font-size: 22px;
    font-weight: 700;
}

.auth-subtitle {
    margin-bottom: 24px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-alert.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #9b1c1c;
}

.auth-alert.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 15px;
    transition: all .2s ease;
}

.auth-field input::placeholder {
    color: #94a3b8;
}

.auth-field input:focus {
    outline: none;
    border-color: #2457b8;
    box-shadow: 0 0 0 3px rgba(36, 87, 184, .15);
}

.auth-field .hint {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 24px;
    font-size: 14px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: #2457b8;
    cursor: pointer;
}

.auth-link {
    color: #2457b8;
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    display: block;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #2457b8;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.auth-submit:hover {
    background: #1d499e;
}

.auth-submit:focus-visible {
    outline: 2px solid #142b55;
    outline-offset: 2px;
}

.auth-secondary {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.auth-secondary:hover {
    border-color: #b9c9e2;
    background: #f6f8fc;
}

.auth-secondary:focus-visible {
    outline: 2px solid #142b55;
    outline-offset: 2px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    content: "";
}

.auth-footer {
    margin-top: 20px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }
}