
/* =====================================
   KPUM FAI UNSIKA - AUTHENTICATION
===================================== */

.auth-page,
.auth-page * {
    box-sizing: border-box;
}

.auth-page {
    min-height: 100vh;
    padding: 30px 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, #e2eee6, transparent 35%),
        #f3f6f3;
    font-family: Arial, sans-serif;
    color: #24352b;
}

.auth-shell {
    width: min(1080px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 65px rgba(20, 55, 37, .10);
}

/* BRAND PANEL */

.auth-aside {
    padding: 42px;
    background: linear-gradient(145deg, #123d2d, #216344);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
}

.auth-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 13px;
}

.auth-logos img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.auth-logo-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

.auth-brand-text strong {
    display: block;
    font-size: 16px;
}

.auth-brand-text span {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #d4e4d9;
    letter-spacing: 1px;
}

.auth-aside-content {
    margin: 65px 0;
}

.auth-aside-kicker {
    color: #c4dfcb;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.auth-aside-content h1 {
    margin: 20px 0;
    font-size: 36px;
    line-height: 1.25;
}

.auth-aside-content p {
    color: #d8e7dc;
    font-size: 14px;
    line-height: 1.8;
    max-width: 360px;
}

.auth-aside-footer {
    color: #c4d9ca;
    font-size: 12px;
}

/* FORM PANEL */

.auth-main {
    display: grid;
    place-items: center;
    padding: 48px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-eyebrow {
    color: #237449;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.7px;
}

.auth-card h2 {
    margin: 12px 0 9px;
    color: #173e2c;
    font-size: 28px;
}

.auth-description {
    color: #78837b;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 27px;
}

.auth-field {
    margin-bottom: 19px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #34483a;
    font-size: 13px;
    font-weight: bold;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dce5de;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #24352b;
    font-size: 13px;
    transition: .2s;
}

.auth-input:focus {
    border-color: #237449;
    box-shadow: 0 0 0 3px rgba(35, 116, 73, .10);
}

.auth-input::placeholder {
    color: #aab3ac;
}

.auth-hint {
    display: block;
    margin-top: 7px;
    color: #89958c;
    font-size: 11px;
    line-height: 1.5;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 5px 0 20px;
    color: #647168;
    font-size: 12px;
}

.auth-remember input {
    accent-color: #174b35;
    width: 15px;
    height: 15px;
}

.auth-button {
    width: 100%;
    min-height: 49px;
    border: none;
    border-radius: 9px;
    background: #174b35;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.auth-button:hover {
    background: #216344;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(23, 75, 53, .16);
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    color: #78837b;
    font-size: 12px;
}

.auth-switch a {
    color: #17633b;
    font-weight: bold;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.7;
}

.auth-alert-error {
    color: #a52e2e;
    background: #fff1f0;
    border: 1px solid #ffd5d1;
}

.auth-alert-success {
    color: #17613a;
    background: #edf8f0;
    border: 1px solid #ccebd4;
}

.auth-bottom-note {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #edf0ed;
    color: #a0aaa2;
    text-align: center;
    font-size: 10px;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .auth-page {
        padding: 15px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-aside {
        padding: 25px;
    }

    .auth-logos img {
        width: 43px;
        height: 43px;
    }

    .auth-aside-content {
        margin: 30px 0 10px;
    }

    .auth-aside-content h1 {
        font-size: 26px;
        margin: 12px 0;
    }

    .auth-aside-content p {
        font-size: 12px;
    }

    .auth-aside-footer {
        display: none;
    }

    .auth-main {
        padding: 35px 24px;
    }

    .auth-card h2 {
        font-size: 24px;
    }
}

/* =========================================
   KPUM FAI - MAROON THEME OVERRIDE
   Letakkan paling bawah auth.css
========================================= */

:root {
    --kpum-dark: #4B1024;
    --kpum-maroon: #681B38;
    --kpum-maroon-light: #8A2949;
    --kpum-accent: #C23B62;
    --kpum-soft: #F8F2F5;
    --kpum-border: #EAD9E1;
    --kpum-text: #351321;
    --kpum-muted: #8A7480;
}

/* Background */

.auth-page {
    background:
        radial-gradient(circle at top left, #F2E2E9, transparent 38%),
        #F8F4F6;
    color: var(--kpum-text);
}

/* Main card */

.auth-shell {
    background: #fff;
    box-shadow: 0 20px 65px rgba(75, 16, 36, .10);
}

/* Panel kiri */

.auth-aside {
    background: linear-gradient(
        145deg,
        #4B1024,
        #681B38 65%,
        #792443
    );
}

/* Logo */

.auth-logos {
    background: #fff;
    border-radius: 13px;
}

.auth-logo-divider {
    background: #EAD9E1;
}

/* Tulisan panel kiri */

.auth-aside-kicker {
    color: #F2C5D4;
}

.auth-aside-content p {
    color: #F0DCE3;
}

.auth-aside-footer {
    color: #E7C7D2;
}

/* Judul form */

.auth-eyebrow {
    color: #A72E54;
}

.auth-card h2 {
    color: #51142B;
}

.auth-description {
    color: #8A7480;
}

/* Form */

.auth-field label {
    color: #4B1830;
}

.auth-input {
    border-color: #EAD9E1;
    color: #351321;
    background: #fff;
}

.auth-input:focus {
    border-color: #A72E54;
    box-shadow: 0 0 0 3px rgba(167, 46, 84, .10);
}

/* Remember me */

.auth-remember {
    color: #796571;
}

.auth-remember input {
    accent-color: #681B38;
}

/* Tombol */

.auth-button {
    background: #681B38;
}

.auth-button:hover {
    background: #4B1024;
    box-shadow: 0 7px 18px rgba(75, 16, 36, .18);
}

/* Link */

.auth-switch a {
    color: #A72E54;
}

/* Notifikasi berhasil */

.auth-alert-success {
    color: #741F3C;
    background: #FBF0F4;
    border-color: #EED3DE;
}

/* Footer form */

.auth-bottom-note {
    border-color: #F0E5EA;
    color: #9A8790;
}


/* =========================================
   RESPONSIVE TABLET DAN HP
========================================= */

.auth-shell,
.auth-main,
.auth-card {
    min-width: 0;
}

@media (max-width: 900px) {

    .auth-page {
        display: block;
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        padding: 0;
    }

    .auth-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }

    .auth-aside {
        padding: 26px 24px 24px;
        border-radius: 0;
    }

    .auth-brand {
        gap: 12px;
    }

    .auth-logos {
        padding: 7px 10px;
        gap: 8px;
    }

    .auth-logos img {
        width: 44px;
        height: 44px;
    }

    .auth-aside-content {
        margin: 25px 0 0;
        max-width: 600px;
    }

    .auth-aside-content h1 {
        font-size: clamp(25px, 5vw, 34px);
        line-height: 1.25;
        margin: 12px 0;
    }

    .auth-aside-content p {
        font-size: 13px;
        line-height: 1.7;
        max-width: 520px;
    }

    .auth-aside-footer {
        display: none;
    }

    .auth-main {
        display: grid;
        place-items: start center;
        padding: 34px 24px 45px;
    }

    .auth-card {
        width: 100%;
        max-width: 460px;
    }

    .auth-card h2 {
        font-size: 26px;
    }

    .auth-input {
        width: 100%;
        min-height: 50px;
        font-size: 16px;
    }

    .auth-button {
        min-height: 52px;
    }
}


/* =========================================
   RESPONSIVE HP KECIL
========================================= */

@media (max-width: 480px) {

    .auth-aside {
        padding: 22px 19px 21px;
    }

    .auth-logos img {
        width: 40px;
        height: 40px;
    }

    .auth-brand-text strong {
        font-size: 15px;
    }

    .auth-brand-text span {
        font-size: 10px;
    }

    .auth-aside-content {
        margin-top: 22px;
    }

    .auth-aside-content h1 {
        font-size: 25px;
        margin: 11px 0;
    }

    .auth-aside-content p {
        font-size: 12px;
        line-height: 1.7;
    }

    .auth-aside-kicker {
        font-size: 10px;
    }

    .auth-main {
        padding: 29px 19px 36px;
    }

    .auth-card h2 {
        font-size: 24px;
    }

    .auth-description {
        font-size: 12px;
        margin-bottom: 23px;
    }

    .auth-field {
        margin-bottom: 17px;
    }

    .auth-switch {
        line-height: 1.8;
    }
}

/* HP dengan layar sangat pendek */

@media (max-height: 650px) and (max-width: 900px) {
    .auth-aside-content {
        margin-top: 15px;
    }

    .auth-aside-content h1 {
        font-size: 23px;
    }

    .auth-main {
        padding-top: 24px;
    }
}


/* =========================================
   FORGOT PASSWORD LINK
========================================= */

.auth-forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-top: 9px;
    margin-bottom: 17px;
}

.auth-forgot-password a {
    color: #681B38;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-password a:hover {
    color: #4B1024;
    text-decoration: underline;
}

.auth-forgot-password a:focus-visible {
    outline: 2px solid #A72E54;
    outline-offset: 3px;
    border-radius: 3px;
}
