/* Admin login - Vanjogja clean brand gate */
:root {
    --navy: #102f50;
    --navy-dk: #071d34;
    --navy-mid: #1d4770;
    --gold: #f5b531;
    --gold-dk: #c98a18;
    --ink: #172033;
    --muted: #657084;
    --line: #dbe3ee;
    --surface: #ffffff;
    --soft: #f5f8fc;
    --danger: #c0392b;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
    height: 100%;
    min-height: 100%;
    font-family: var(--font-body);
    background: var(--soft);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-left {
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 181, 49, .22), transparent 28%),
        radial-gradient(circle at 84% 8%, rgba(80, 140, 190, .2), transparent 26%),
        linear-gradient(145deg, var(--navy-dk) 0%, var(--navy) 48%, #173f69 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.75rem;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, .45), transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.login-left::after {
    content: '';
    position: absolute;
    right: -180px;
    bottom: -180px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    border: 1px solid rgba(245, 181, 49, .26);
    box-shadow: inset 0 0 0 80px rgba(245, 181, 49, .04);
    pointer-events: none;
    z-index: 0;
}

.login-left > * {
    position: relative;
    z-index: 1;
}

.left-logo {
    display: flex;
    align-items: center;
}

.left-logo-mark {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(7, 29, 52, .32);
    box-shadow: 0 18px 42px rgba(2, 12, 24, .22);
    isolation: isolate;
}

.left-logo-mark svg {
    width: 22px;
    height: 22px;
    fill: var(--gold);
}

.left-logo-mark img {
    width: 100%;
    height: auto;
    max-height: 74px;
    object-fit: contain;
    display: block;
    filter: none !important;
    mix-blend-mode: normal !important;
    border-radius: 4px;
}

.left-logo-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0;
}

.left-logo-name span {
    color: var(--gold);
    font-weight: 600;
}

.left-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-tagline {
    width: fit-content;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem .85rem;
    border: 1px solid rgba(245, 181, 49, .42);
    border-radius: 999px;
    background: rgba(7, 29, 52, .32);
}

.left-headline {
    font-family: var(--font-body);
    font-size: clamp(2.6rem, 5vw, 4.65rem);
    font-weight: 800;
    line-height: .98;
    color: #fff;
    letter-spacing: 0;
}

.left-headline em {
    font-style: normal;
    color: var(--gold);
}

.left-headline strong {
    font-weight: 800;
    display: block;
}

.left-desc {
    margin-top: 1.5rem;
    font-size: .98rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .72);
    font-weight: 400;
    max-width: 440px;
}

.left-stats {
    display: flex;
    gap: .85rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.left-stats > div {
    min-width: 0;
    padding: .8rem .95rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.left-stat-num {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.left-stat-num span {
    color: var(--gold);
}

.left-stat-lbl {
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .56);
    margin-top: .25rem;
}

.left-deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(245, 181, 49, .42) 30%, rgba(245, 181, 49, .42) 70%, transparent 100%);
}

.login-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(245, 248, 252, .98)),
        var(--soft);
}

.login-box {
    width: 100%;
    max-width: 424px;
    padding: 2.25rem;
    border: 1px solid rgba(219, 227, 238, .88);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 60px rgba(16, 47, 80, .12);
}

.mobile-brand {
    display: none;
}

.form-eyebrow {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dk);
    font-weight: 800;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.form-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.form-title {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .5rem;
    line-height: 1.15;
}

.form-title em {
    font-style: normal;
    color: var(--navy-mid);
}

.form-subtitle {
    font-size: .92rem;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 2.2rem;
}

.demo-login-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #f0c84a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #7a5c00;
    margin-bottom: 16px;
    line-height: 1.5;
}

.demo-login-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    stroke: #c9913a;
}

.demo-login-notice strong {
    font-weight: 700;
    color: #5a3e00;
}

.alert-error {
    background: rgba(192, 57, 43, .06);
    border: 1px solid rgba(192, 57, 43, .2);
    border-left: 3px solid var(--danger);
    border-radius: 6px;
    padding: .85rem 1rem;
    margin-bottom: 1.5rem;
    font-size: .84rem;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.alert-error svg {
    width: 16px;
    height: 16px;
    fill: var(--danger);
    flex-shrink: 0;
}

.field {
    margin-bottom: 1.2rem;
}

.field label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: .5rem;
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: .85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: #fbfdff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 500;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}

.field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 181, 49, .18);
    background: #fff;
}

.field input::placeholder {
    color: #98a3b5;
    opacity: 1;
}

.field-password {
    position: relative;
}

.field-password input {
    padding-right: 3rem;
}

.toggle-pw {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 34px;
    height: 34px;
    color: var(--muted);
    transition: color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pw:hover {
    color: var(--navy);
}

.toggle-pw svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.captcha-box {
    background: linear-gradient(135deg, rgba(245, 181, 49, .16), rgba(245, 248, 252, .92));
    border: 1px solid rgba(245, 181, 49, .28);
    border-radius: 6px;
    padding: .72rem .95rem;
    margin-bottom: .55rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.captcha-box svg {
    width: 16px;
    height: 16px;
    fill: var(--gold-dk);
    flex-shrink: 0;
}

.captcha-question {
    font-size: .84rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
}

.captcha-question strong {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy);
    font-weight: 800;
}

.btn-login {
    width: 100%;
    min-height: 48px;
    padding: .95rem;
    margin-top: .5rem;
    background: var(--gold);
    color: var(--navy-dk);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, transform .2s, box-shadow .2s;
}

.btn-login:hover:not(:disabled) {
    background: #ffbf3d;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(201, 138, 24, .22);
}

.btn-login.is-loading {
    cursor: wait;
    opacity: .9;
    transform: none;
}

.btn-login:disabled {
    background: #e7edf5;
    color: #8a96a8;
    cursor: not-allowed;
    transform: none;
}

.login-footer-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.6;
}

.login-footer-note strong {
    color: var(--ink);
}

.login-dev-credit {
    display: block;
    margin-top: .65rem;
    color: #7a879a;
    font-size: .72rem;
}

.login-dev-credit a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 181, 49, .58);
    transition: color .2s, border-color .2s;
}

.login-dev-credit a:hover {
    color: var(--gold-dk);
    border-color: var(--gold-dk);
}

@media (max-width: 768px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        background:
            radial-gradient(circle at 20% 0%, rgba(245, 181, 49, .18), transparent 32%),
            linear-gradient(180deg, var(--navy) 0 168px, var(--soft) 168px 100%);
        min-height: 100vh;
        min-height: 100dvh;
        padding: max(1.35rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.35rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
        justify-content: flex-start;
    }

    .login-box {
        max-width: 430px;
        margin: 0 auto;
        padding: 1.45rem;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: .72rem;
        margin-bottom: 1.85rem;
        min-height: 42px;
    }

    .mobile-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, .36);
        background: rgba(7, 29, 52, .38);
        box-shadow: 0 8px 18px rgba(7, 29, 52, .18);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex: 0 0 auto;
    }

    .mobile-brand-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: .24rem;
        display: block;
    }

    .mobile-brand-name {
        color: #fff;
        font-size: .78rem;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .form-eyebrow {
        margin-bottom: .6rem;
    }

    .form-title {
        font-size: clamp(1.72rem, 8vw, 2rem);
        margin-bottom: .45rem;
    }

    .form-subtitle {
        font-size: .86rem;
        line-height: 1.55;
        margin-bottom: 1.65rem;
    }

    .field {
        margin-bottom: 1rem;
    }

    .field label {
        font-size: .72rem;
        margin-bottom: .48rem;
    }

    .field input {
        min-height: 50px;
        background: #fbfdff;
        border-color: rgba(101, 112, 132, .24);
        font-size: .95rem;
    }

    .captcha-box {
        min-height: 48px;
    }

    .btn-login {
        min-height: 50px;
        margin-top: .7rem;
    }

    .login-right::before {
        content: '';
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .login-footer-note {
        margin-top: 1.65rem;
        padding-top: 1.15rem;
        font-size: .72rem;
    }
}

@media (max-width: 480px) {
    .left-logo-mark {
        width: 200px;
    }

    .captcha-question {
        align-items: flex-start;
        flex-direction: column;
        gap: .18rem;
    }
}
