/* =========================================================
   LOGIN - layar terbagi: panel brand (kiri) + form (kanan)
   ========================================================= */

.auth-shell {
    display: grid;
    grid-template-columns: minmax(420px, 46%) 1fr;
    min-height: 100vh;
    background: var(--mud-palette-background);
}

/* ---------- Panel brand ---------- */
.auth-brand {
    position: relative;
    overflow: hidden;
    color: #E2E8F0;
    background:
        radial-gradient(1200px 600px at -10% -20%, rgba(214, 91, 179, 0.28), transparent 60%),
        radial-gradient(900px 500px at 120% 120%, rgba(90, 0, 66, 0.25), transparent 60%),
        linear-gradient(160deg, #1A0014 0%, #3A0030 55%, #5A0042 100%);
}

.auth-brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}

.auth-brand-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 91, 179, 0.22), transparent 70%);
    filter: blur(10px);
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 48px 56px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 15px;
    color: #F8FAFC;
}

.auth-logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px;
    object-fit: contain;
}

.auth-brand-copy {
    max-width: 440px;
}

.auth-brand-copy h1 {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F8FAFC;
}

.auth-brand-copy p {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.6;
    color: #94A3B8;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: #CBD5E1;
}

.auth-features .mud-icon-root {
    color: #E2C766;
}

.auth-brand-footer {
    font-size: 12.5px;
    color: #64748B;
}

/* ---------- Area form ---------- */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--mud-palette-surface);
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mud-palette-text-primary);
}

.auth-mobile-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.auth-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--mud-palette-text-primary);
}

.auth-header p {
    margin: 0;
    font-size: 14.5px;
    color: var(--mud-palette-text-secondary);
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.auth-input .mud-input-outlined-border {
    border-radius: 10px !important;
}

.auth-input .mud-input {
    font-size: 14.5px;
}

.auth-input .mud-input-slot {
    height: 26px;
}

.auth-submit.mud-button-root {
    height: 46px;
    border-radius: 10px;
    font-size: 15px;
}

.auth-alert {
    border-radius: 10px !important;
}

.auth-help {
    margin: 28px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
}

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-mobile-logo {
        display: flex;
    }

    .auth-main {
        background: var(--mud-palette-background);
    }

    .auth-card {
        background: var(--mud-palette-surface);
        border: 1px solid var(--mud-palette-lines-default);
        border-radius: 16px;
        padding: 32px 28px;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    }
}

/* =========================================================
   POLES (2026-10-06): panel brand berisi kartu fitur, form dalam kartu
   ========================================================= */
.auth-brand-copy {
    max-width: 520px;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #F3D97C;
    background: rgba(214, 91, 179, 0.12);
    border: 1px solid rgba(214, 91, 179, 0.28);
}

.auth-brand-copy h1 {
    font-size: 42px;
    max-width: 480px;
}

.auth-feature-grid {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(6px);
    transition: border-color .2s ease, transform .2s ease;
}

.auth-feature:hover {
    border-color: rgba(214, 91, 179, 0.45);
    transform: translateX(4px);
}

.auth-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #E2C766;
    background: rgba(214, 91, 179, 0.14);
}

.auth-feature-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #F1F5F9;
}

.auth-feature-text {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.5;
    color: #94A3B8;
}

/* kartu form di layar lebar */
.auth-main {
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(214, 91, 179, 0.06), transparent 60%),
        var(--mud-palette-background);
}

.auth-card {
    max-width: 420px;
    padding: 36px 32px 28px;
    border-radius: 18px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .auth-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.auth-header h2 {
    font-size: 24px;
}

.auth-submit.mud-button-root {
    box-shadow: 0 6px 16px rgba(134, 0, 99, 0.25);
}

.auth-submit.mud-button-root:hover {
    box-shadow: 0 8px 22px rgba(134, 0, 99, 0.32);
}


/* Panel brand (2026-10-06, tata letak mengikuti OLAM, warna GBU): kartu fungsi 2 kolom + pill keunggulan */
.auth-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-feature:hover {
    transform: translateY(-2px);
}

.auth-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.auth-pill {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #F6E9C2;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(226, 199, 102, 0.25);
}

@media (max-width: 1100px) {
    .auth-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* tombol bergaya tautan (mis. Keluar di halaman ganti password) */
.fs-link-button {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
