/* =====================================================================
   Auth pages (Login / Register / Reset) — split-screen layout
   Left: form panel (cream)  •  Right: brand image from settings
   ===================================================================== */

:root {
    /* Brand accent comes straight from site settings (color_2). */
    --auth-primary: var(--color_2, #bea167);
    --auth-navy: #1b2a4a;          /* dark ink — headings, labels, readable text */
    --auth-cream: #f5efe3;
    --auth-cream-2: #ece3d1;
    --auth-field-bg: #efe8d9;
    --auth-field-border: #e2d8c2;
    --auth-gold: var(--color_2, #bea167);
    --auth-text: #21324e;
    --auth-muted: #6d7482;
    --auth-danger: #d64545;
    --auth-radius: 14px;
    --auth-font-head: "Playfair Display", "Times New Roman", Georgia, serif;
}

/* Hide the global site chrome on auth screens for a full-bleed look */
body.auth-body .header,
body.auth-body .footer-section,
body.auth-body .preloader { display: none !important; }
body.auth-body .main-wrapper { min-height: 0 !important; }
body.auth-body { background: var(--auth-cream); }

.auth-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ---------- Left / form panel ---------- */
.auth-left {
    flex: 1 1 50%;
    background: linear-gradient(150deg, var(--auth-cream) 0%, var(--auth-cream-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}
.auth-card.auth-card--wide { max-width: 560px; }

.auth-logo { margin-bottom: 40px; }
.auth-logo img { height: 68px; width: auto; object-fit: contain; }

.auth-head {
    font-family: var(--auth-font-head);
    color: var(--auth-navy);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 4px;
    font-size: 46px;
    letter-spacing: -0.5px;
}
.auth-head span { font-weight: 400; font-size: 30px; display: block; }
.auth-sub {
    color: var(--auth-muted);
    font-size: 15px;
    margin: 10px 0 30px;
}

/* ---------- Fields ---------- */
.auth-form .form-group { margin-bottom: 18px; }

.auth-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    background: var(--auth-field-bg);
    border: 1px solid var(--auth-field-border);
    border-radius: var(--auth-radius);
    padding: 0 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-field:focus-within {
    border-color: var(--auth-primary);
    background: #fbf8f1;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 20%, transparent);
}
.auth-field > .fld-icon {
    color: var(--auth-primary);
    font-size: 17px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: .75;
}
.auth-field .form-control,
.auth-field input,
.auth-field select {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    height: 54px;
    padding: 0 12px !important;
    font-size: 15px;
    color: var(--auth-text);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.auth-field input::placeholder { color: #9aa0ab; }
.auth-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236d7482' d='M6 8 0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
}
.auth-field .toggle-pass {
    cursor: pointer;
    color: var(--auth-muted);
    font-size: 17px;
    padding-left: 8px;
    flex-shrink: 0;
}

/* File input — align the native picker neatly inside the field */
.auth-field input[type="file"] {
    height: auto !important;
    padding: 9px 0 9px 12px !important;
    font-size: 14px;
    color: var(--auth-muted);
    cursor: pointer;
    line-height: 1.4;
}
.auth-field input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 9px 18px;
    border: 1px solid var(--auth-field-border);
    border-radius: 9px;
    background: #fff;
    color: var(--auth-navy);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.auth-field input[type="file"]::file-selector-button:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
    background: #fbf8f1;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-navy);
    margin-bottom: 7px;
}

/* ---------- Row of options ---------- */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
}
.auth-check { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.auth-check input { width: 17px; height: 17px; accent-color: var(--auth-primary); cursor: pointer; }
.auth-check span { font-size: 14px; color: var(--auth-text); }
.auth-link { color: var(--auth-primary); font-size: 14px; text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; filter: brightness(.9); }

/* ---------- Buttons ---------- */
.auth-btn {
    width: 100%;
    border: 0;
    border-radius: var(--auth-radius);
    background: var(--auth-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    height: 54px;
    cursor: pointer;
    transition: filter .2s, background .2s, transform .05s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.auth-btn:hover { filter: brightness(.92); color: #fff; }
.auth-btn:active { transform: translateY(1px); }
.auth-btn-ghost {
    background: transparent;
    color: var(--auth-text);
    border: 1px solid var(--auth-field-border);
}
.auth-btn-ghost:hover { background: #fbf8f1; color: var(--auth-text); border-color: var(--auth-primary); filter: none; }
.auth-btn-outline {
    background: transparent;
    color: var(--auth-primary);
    border: 1.5px solid var(--auth-primary);
}
.auth-btn-outline:hover { background: var(--auth-primary); color: #fff; }

/* ---------- Divider ---------- */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--auth-muted);
    font-size: 13px;
    letter-spacing: 1px;
    margin: 22px 0;
    gap: 14px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-field-border);
}

.auth-google img { width: 20px; height: 20px; }

.auth-foot {
    text-align: center;
    margin-top: 26px;
    font-size: 14px;
    color: var(--auth-muted);
}
.auth-foot a { color: var(--auth-primary); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* Back-to-website link, pinned to the bottom of the form panel */
.auth-back-wrap {
    text-align: center;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--auth-field-border);
}
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--auth-muted);
    text-decoration: none;
    transition: color .2s, gap .2s;
}
.auth-back i { font-size: 16px; color: var(--auth-primary); }
.auth-back:hover { color: var(--auth-primary); gap: 11px; }

/* ---------- Right / image panel ---------- */
.auth-right {
    flex: 1 1 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}
.auth-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(20,33,61,.10), rgba(20,33,61,0) 40%);
    pointer-events: none;
}

/* =====================================================================
   Multistep register
   ===================================================================== */
.auth-steps {
    display: flex;
    align-items: center;
    margin: 6px 0 28px;
}
.auth-step {
    display: flex;
    align-items: center;
    flex: 1;
}
.auth-step:last-child { flex: 0; }
.auth-step .dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--auth-field-bg);
    border: 1.5px solid var(--auth-field-border);
    color: var(--auth-muted);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    transition: all .25s;
}
.auth-step .bar {
    flex: 1;
    height: 2px;
    background: var(--auth-field-border);
    margin: 0 8px;
    transition: background .25s;
}
.auth-step .lbl {
    display: none;
}
.auth-step.active .dot { background: var(--auth-primary); border-color: var(--auth-primary); color: #fff; }
.auth-step.done .dot { background: var(--auth-navy); border-color: var(--auth-navy); color: #fff; }
.auth-step.done .bar { background: var(--auth-primary); }

.auth-step-panel { display: none; animation: authFade .3s ease; }
.auth-step-panel.active { display: block; }
@keyframes authFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.auth-step-title {
    font-family: var(--auth-font-head);
    color: var(--auth-navy);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}
.auth-step-note { color: var(--auth-muted); font-size: 13px; margin-bottom: 20px; }

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.auth-grid .col-12 { grid-column: 1 / -1; }
@media (max-width: 520px) { .auth-grid { grid-template-columns: 1fr; } }

.auth-nav { display: flex; gap: 12px; margin-top: 8px; }
.auth-nav .auth-btn { flex: 1; }

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 22px;
}
.auth-terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--auth-primary); flex-shrink: 0; }
.auth-terms label { font-size: 13.5px; color: var(--auth-text); line-height: 1.5; }

.auth-file-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-navy);
    margin-bottom: 7px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .auth-wrap { flex-direction: column; }
    .auth-right { min-height: 200px; flex-basis: auto; order: -1; }
    .auth-left { padding: 40px 24px; }
    .auth-head { font-size: 38px; }
}
@media (max-width: 480px) {
    .auth-left { padding: 32px 18px; }
    .auth-head { font-size: 32px; }
    .auth-head span { font-size: 24px; }
    .auth-logo img { height: 56px; }
}
