:root {
    --auth-bg: #080808;
    --auth-surface: #11110f;
    --auth-ivory: #f1eee8;
    --auth-muted: #aaa49b;
    --auth-gold: #b99a61;
    --auth-border: rgba(185, 154, 97, .3);
    --auth-danger: #e58787;
}

.lux-auth-page,
body.lux-admin-auth {
    min-height: 100svh;
    background: var(--auth-bg);
    color: var(--auth-ivory);
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
}

.lux-auth-page { padding: 80px 0 0; }

.lux-auth-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 680px;
    margin: 48px auto;
    display: grid;
    grid-template-columns: minmax(320px, 46%) minmax(390px, 54%);
    border: 1px solid var(--auth-border);
    background: var(--auth-surface);
    overflow: hidden;
}

.lux-auth-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: clamp(36px, 5vw, 72px);
    background: linear-gradient(180deg, rgba(8,8,8,.1), rgba(8,8,8,.92)),
        url('/images/quote/test-interior.jpg') center/cover no-repeat;
}

.lux-auth-visual::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(241, 238, 232, .18);
    pointer-events: none;
}

.lux-auth-brand { position: relative; z-index: 1; max-width: 430px; }
.lux-auth-kicker { color: var(--auth-gold); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
.lux-auth-brand h1,
.lux-auth-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    color: var(--auth-ivory);
}
.lux-auth-brand h1 { margin: 14px 0; font-size: clamp(48px, 6vw, 82px); letter-spacing: .13em; }
.lux-auth-brand p { color: #d5d0c8; line-height: 1.8; }

.lux-auth-panel { display: flex; align-items: center; padding: clamp(38px, 6vw, 80px); }
.lux-auth-form-wrap { width: 100%; max-width: 520px; margin: auto; }
.lux-auth-title { margin: 8px 0 10px; font-size: clamp(42px, 5vw, 64px); line-height: 1; }
.lux-auth-subtitle { margin: 0 0 34px; color: var(--auth-muted); line-height: 1.7; }
.lux-auth-field { margin-bottom: 22px; }
.lux-auth-field label { display: block; margin-bottom: 10px; color: #d8d2c9; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.lux-auth-input-wrap { position: relative; }
.lux-auth-input {
    width: 100%; height: 56px; padding: 0 48px 0 0;
    border: 0; border-bottom: 1px solid rgba(241,238,232,.25); border-radius: 0;
    background: transparent; color: var(--auth-ivory); font: inherit; outline: none;
    transition: border-color .25s ease;
}
.lux-auth-input:focus { border-color: var(--auth-gold); box-shadow: none; }
.lux-auth-input::placeholder { color: #6f6b65; }
.lux-auth-input.is-invalid { border-color: var(--auth-danger); }
.lux-auth-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--auth-muted); cursor: pointer; font-size: 12px; letter-spacing: .08em; }
.lux-auth-error { margin-top: 8px; color: var(--auth-danger); font-size: 13px; }
.lux-auth-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 26px 0; color: var(--auth-muted); font-size: 13px; }
.lux-auth-check { display: inline-flex; align-items: center; gap: 9px; }
.lux-auth-check input { accent-color: var(--auth-gold); }
.lux-auth-link { color: var(--auth-gold); text-decoration: none; }
.lux-auth-link:hover { color: #d5b77c; }
.lux-auth-submit {
    width: 100%; min-height: 54px; border: 1px solid var(--auth-gold);
    background: var(--auth-gold); color: #0a0907; font: 600 12px/1 "Be Vietnam Pro", sans-serif;
    letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: .25s ease;
}
.lux-auth-submit:hover { background: transparent; color: var(--auth-gold); }
.lux-auth-submit:disabled { opacity: .6; cursor: wait; }
.lux-auth-switch { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid rgba(241,238,232,.1); color: var(--auth-muted); text-align: center; font-size: 14px; }
.lux-auth-alert { margin-bottom: 22px; padding: 14px 16px; border-left: 2px solid var(--auth-gold); background: rgba(185,154,97,.08); color: #e5ded2; font-size: 14px; }

.lux-admin-auth { margin: 0; display: grid; place-items: center; padding: 24px; }
.lux-admin-auth .lux-auth-shell { margin: 0; min-height: min(720px, calc(100svh - 48px)); }
.lux-admin-badge { display: inline-block; margin-bottom: 18px; padding: 8px 12px; border: 1px solid var(--auth-border); color: var(--auth-gold); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

@media (max-width: 860px) {
    .lux-auth-page { padding-top: 64px; }
    .lux-auth-shell { grid-template-columns: 1fr; width: min(620px, calc(100% - 28px)); margin: 24px auto; }
    .lux-auth-visual { min-height: 260px; padding: 38px; }
    .lux-auth-visual::before { inset: 14px; }
    .lux-auth-brand h1 { font-size: 52px; }
    .lux-auth-brand p { margin-bottom: 0; }
    .lux-auth-panel { padding: 42px 30px 48px; }
    .lux-admin-auth { padding: 14px; }
    .lux-admin-auth .lux-auth-shell { min-height: auto; }
}

@media (max-width: 480px) {
    .lux-auth-shell { width: calc(100% - 20px); border-left: 0; border-right: 0; }
    .lux-auth-visual { min-height: 210px; padding: 30px 26px; }
    .lux-auth-brand h1 { font-size: 42px; }
    .lux-auth-brand p { display: none; }
    .lux-auth-panel { padding: 36px 22px 42px; }
    .lux-auth-title { font-size: 42px; }
    .lux-auth-options { align-items: flex-start; flex-direction: column; gap: 14px; }
}
