/* ============================================================================
   PAWDARE — Auth / Login screens (Brandbook v1.0 "Warm Tech" · §08 Soft & Glass)
   ----------------------------------------------------------------------------
   Loaded by templates/layout/login.php AFTER tokens.css + brand.css.
   Centralizes everything the auth templates used to re-declare inline:
   the copper buttons, the glass card, the logo halo and the Marcellus titles.
   Tokens (--copper*, --linen, --sand, --g1, --font-display …) come from tokens.css.
   ============================================================================ */

/* ── Right column: warm Linen canvas instead of flat white ──────────────── */
.auth-panel {
    position: relative;
    background: var(--linen);
}
/* Champagne glow bleeding from the top for gentle depth */
.auth-panel::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(120% 55% at 50% -8%, rgba(230,201,168,.45), rgba(247,242,235,0) 60%);
    pointer-events: none;
}
.auth-panel > * { position: relative; z-index: 1; }

/* ── Glass card holding the form (canonical PAWDARE surface, §08) ────────── */
.auth-card {
    position: relative;
    background: rgba(255,255,255,.65);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(140,90,60,.12);
    padding: 34px 32px;
}
@media (max-width: 575px) {
    .auth-card { padding: 24px 20px; }
}

/* ── Halo glow behind the logo (Brandbook G4 radial) ────────────────────── */
.auth-halo {
    position: relative;
    display: flex; justify-content: center;
    margin-bottom: 1.25rem;
}
.auth-halo::before {
    content: "";
    position: absolute; top: 50%; left: 50%;
    width: 190px; height: 190px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(230,201,168,.75) 0%, rgba(247,242,235,0) 62%);
    pointer-events: none; z-index: 0;
}
.auth-halo .app-logo {
    position: relative; z-index: 1;
    margin: 0 !important;      /* base.css sets a 3rem bottom margin — halo owns spacing */
}

/* ── Titles — Marcellus display headline + muted Montserrat sub ──────────── */
.auth-title {
    font-family: var(--font-display);
    font-weight: 400; color: var(--charcoal);
    font-size: 1.6rem; line-height: 1.2; margin: 0;
}
.auth-subtitle {
    display: block; margin-top: .4rem;
    font-family: var(--font-ui); font-weight: 400;
    color: #8a7a6c; font-size: .95rem; line-height: 1.4;
}

/* ── Copper buttons (were duplicated inline in every auth template) ──────── */
.btn-copper {
    background: var(--g1); color: #fff !important; border: none;
    border-radius: 100px; padding: 10px 26px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: filter .2s; text-decoration: none;
    display: inline-block; box-shadow: 0 6px 16px rgba(140,90,60,.28);
}
.btn-copper:hover { filter: brightness(1.04); }
.btn-copper-ghost {
    background: none; border: none; color: var(--copper-ui) !important;
    font-size: 15px; font-weight: 600; padding: 10px 16px;
    cursor: pointer; text-decoration: none;
}
.btn-copper-ghost:hover { color: var(--copper-deep) !important; }
.btn-copper-toggle {
    background: var(--linen); color: var(--copper-ui);
    border: 1px solid var(--sand); border-left: none;
    border-radius: 0 10px 10px 0; padding: 8px 14px; cursor: pointer;
}
.btn-copper-toggle:hover { background: rgba(230,201,168,.3); }

/* ── Inputs inside the glass card ───────────────────────────────────────── */
.auth-card .form-control,
.auth-card .form-select {
    border-radius: 10px !important; border-color: var(--sand);
    background: rgba(255,255,255,.9);
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--copper-ui);
    box-shadow: 0 0 0 .2rem rgba(192,133,82,.2);
}
.auth-card .input-group .form-control { border-radius: 10px 0 0 10px !important; }
.auth-card .form-control-plaintext { color: var(--charcoal); font-weight: 600; }

/* Read-only confirm rows */
.auth-field-label { font-size: .78rem; font-weight: 700; color: #8a7a6c; text-transform: uppercase; letter-spacing: .04em; }

/* ── Links ──────────────────────────────────────────────────────────────── */
.auth-card .link-primary,
.auth-card a:not(.btn-copper):not(.btn-copper-ghost):not(.text-muted) { color: var(--copper-ui); }
.auth-card .link-primary:hover { color: var(--copper-deep) !important; }

/* Info panel (steps / checklist blocks) */
.auth-note {
    background: var(--linen); border: 1px solid var(--sand);
    border-radius: 12px; padding: 16px;
}
.auth-step-num { color: var(--copper-ui); font-weight: 700; margin-right: 6px; }
.auth-check    { color: var(--copper-ui); margin-right: 8px; }

/* ── Left slider — warm copper overlay over the photo (§08 brand cohesion) ─ */
.slider-light .slide-img-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,27,.55) 0%, rgba(140,90,60,.55) 55%, rgba(192,133,82,.45) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.slider-light .slider-content h3 { font-family: var(--font-display); font-weight: 400; }

/* ── Language switcher flags ────────────────────────────────────────────── */
.auth-flags { display: flex; gap: .5rem; }
.auth-flag {
    display: block; width: 32px; height: 32px;
    border-radius: 50%; overflow: hidden; text-decoration: none;
    transition: opacity .2s, box-shadow .2s;
}
.auth-flag img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.auth-flag.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--copper-ui), 0 0 0 4px rgba(192,133,82,.25); }
.auth-flag.is-inactive { opacity: .55; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* ── Footer meta ────────────────────────────────────────────────────────── */
.auth-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; font-size: .8rem; }
.auth-footer-links a { color: #8a7a6c !important; text-decoration: none; }
.auth-footer-links a:hover { color: var(--copper-deep) !important; }
.auth-copyright { text-align: center; color: #8a7a6c; font-size: .8rem; }
