/* ================================================================
   Hotel Auth — Split-panel luxury auth styles
   Fonts: Playfair Display (display) + DM Sans (body)
   ================================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --c-navy:       #0f2236;
    --c-navy-mid:   #1a3a58;
    --c-navy-light: #254d72;
    --c-gold:       #c8a45a;
    --c-gold-light: #e2c07a;
    --c-gold-pale:  #f5ead8;
    --c-white:      #ffffff;
    --c-off-white:  #faf9f7;
    --c-text:       #1c2b3a;
    --c-muted:      #6b7f93;
    --c-border:     #e4e9ef;
    --c-danger:     #c0392b;
    --c-success:    #1e7e5a;
    --c-input-bg:   #f7f9fb;

    --radius-sm:    8px;
    --radius-md:    14px;
    --radius-lg:    22px;
    --shadow-form:  0 32px 80px rgba(15,34,54,.18), 0 4px 16px rgba(15,34,54,.08);
    --transition:   all .28s cubic-bezier(.4,0,.2,1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', 'Segoe UI', sans-serif;
}

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

/* ---------- Auth Page ---------- */
body.auth-body {
    min-height: 100vh;
    background: var(--c-off-white);
    font-family: var(--font-body);
    color: var(--c-text);
    display: flex;
    align-items: stretch;
}

/* ================================================================
   SPLIT LAYOUT  (used only on login)
   ================================================================ */
.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left panel ── */
.auth-panel-left {
    flex: 0 0 48%;
    background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-navy-mid) 55%, var(--c-navy-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 56px;
}

/* geometric ornament lines */
.auth-panel-left::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    border: 60px solid rgba(200,164,90,.08);
    border-radius: 50%;
    pointer-events: none;
}
.auth-panel-left::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    border: 40px solid rgba(200,164,90,.07);
    border-radius: 50%;
    pointer-events: none;
}

/* gold accent line top */
.panel-accent-bar {
    position: absolute;
    top: 0; left: 56px;
    width: 64px; height: 3px;
    background: linear-gradient(90deg, var(--c-gold), transparent);
    border-radius: 0 0 2px 2px;
}

/* brand */
.panel-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}
.panel-brand-icon {
    width: 44px; height: 44px;
    background: rgba(200,164,90,.18);
    border: 1.5px solid rgba(200,164,90,.45);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.panel-brand-icon i { color: var(--c-gold); font-size: 18px; }
.panel-brand-name {
    font-family: var(--font-display);
    color: var(--c-white);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1;
}
.panel-brand-tagline {
    color: rgba(255,255,255,.45);
    font-size: .7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* slides area */
.panel-slides {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.slide {
    display: none;
    animation: slideIn .55s cubic-bezier(.4,0,.2,1) both;
}
.slide.active { display: block; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slide-icon {
    width: 64px; height: 64px;
    background: rgba(200,164,90,.13);
    border: 1.5px solid rgba(200,164,90,.3);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 28px;
}
.slide-icon i { font-size: 26px; color: var(--c-gold); }

.slide h2 {
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.22;
    margin-bottom: 18px;
    letter-spacing: -.2px;
}
.slide h2 em {
    font-style: italic;
    color: var(--c-gold-light);
}

.slide p {
    font-size: .96rem;
    color: rgba(255,255,255,.62);
    line-height: 1.75;
    max-width: 340px;
}

/* feature bullets */
.slide-features {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.slide-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .9rem;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
}
.slide-features li .feat-dot {
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: rgba(200,164,90,.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.slide-features li .feat-dot i { font-size: .65rem; color: var(--c-gold); }

/* dots navigation */
.panel-dots {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.panel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}
.panel-dot.active {
    background: var(--c-gold);
    width: 24px;
    border-radius: 4px;
}

/* ── Right panel ── */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: var(--c-off-white);
    position: relative;
}

/* subtle dot-grid bg */
.auth-panel-right::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(15,34,54,.055) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ================================================================
   FORM CARD (right panel)
   ================================================================ */
.auth-form-card {
    width: 100%;
    max-width: 420px;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-form);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* gold top-bar accent */
.auth-form-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--c-navy), var(--c-gold), var(--c-navy-light));
}

.auth-form-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--c-border);
}

.form-greeting {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 8px;
}
.auth-form-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1.2;
    margin-bottom: 6px;
}
.auth-form-header p {
    font-size: .875rem;
    color: var(--c-muted);
    line-height: 1.5;
}

.auth-form-body {
    padding: 28px 40px 32px;
}

/* ================================================================
   INPUTS
   ================================================================ */
.field-group {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 7px;
}

.field-wrap {
    position: relative;
}
.field-wrap .f-icon {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: var(--c-muted);
    font-size: .9rem;
    pointer-events: none;
    transition: var(--transition);
}
.field-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 42px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-input-bg);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--c-text);
    transition: var(--transition);
    outline: none;
}
.field-wrap input::placeholder { color: #b0bec8; }
.field-wrap input:focus {
    border-color: var(--c-navy-mid);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(26,58,88,.1);
}
.field-wrap:focus-within .f-icon { color: var(--c-navy-mid); }

.field-wrap input.is-invalid {
    border-color: var(--c-danger) !important;
    background: #fdf5f5;
}
.field-wrap input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(192,57,43,.12) !important;
}

.f-toggle {
    position: absolute;
    right: 13px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--c-muted);
    cursor: pointer;
    font-size: .9rem;
    padding: 4px;
    transition: var(--transition);
    line-height: 1;
}
.f-toggle:hover { color: var(--c-navy); }

.invalid-msg {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: var(--c-danger);
    margin-top: 6px;
}

/* ── Row: remember + forgot ── */
.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.f-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: var(--c-muted);
    cursor: pointer;
    user-select: none;
}
.f-check-label input[type=checkbox] {
    width: 16px; height: 16px;
    accent-color: var(--c-navy-mid);
    cursor: pointer;
    border-radius: 4px;
}

.f-link {
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-navy-mid);
    text-decoration: none;
    transition: var(--transition);
}
.f-link:hover { color: var(--c-gold); }

/* ================================================================
   SUBMIT BUTTON
   ================================================================ */
.btn-auth {
    width: 100%;
    height: 52px;
    background: var(--c-navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
}
.btn-auth::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(200,164,90,.18) 100%);
    opacity: 0;
    transition: var(--transition);
}
.btn-auth:hover {
    background: var(--c-navy-mid);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15,34,54,.3);
    color: #fff;
}
.btn-auth:hover::after { opacity: 1; }
.btn-auth:active { transform: translateY(0); box-shadow: none; }

/* ================================================================
   ALERTS
   ================================================================ */
.f-alert {
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: .875rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.f-alert i { margin-top: 1px; flex-shrink: 0; }
.f-alert.danger  { background: #fef3f2; border: 1px solid #fccecb; color: var(--c-danger); }
.f-alert.success { background: #f0fdf7; border: 1px solid #b7ebd6; color: var(--c-success); }
.f-alert.info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e5fa8; }

/* ================================================================
   FORM FOOTER
   ================================================================ */
.auth-form-footer {
    text-align: center;
    padding: 16px 40px 24px;
    font-size: .83rem;
    color: var(--c-muted);
    border-top: 1px solid var(--c-border);
}

/* ================================================================
   CENTERED LAYOUT (forgot / reset — no left panel)
   ================================================================ */
body.auth-body.auth-centered {
    align-items: center;
    justify-content: center;
    background: var(--c-off-white);
    background-image:
        radial-gradient(ellipse at 15% 40%, rgba(15,34,54,.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 70%, rgba(200,164,90,.06) 0%, transparent 55%);
    padding: 32px 16px;
}
.auth-centered .auth-form-card { max-width: 460px; }

/* ================================================================
   STEP INDICATOR
   ================================================================ */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 26px;
}
.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}
.auth-step + .auth-step { margin-left: 36px; }
.auth-step + .auth-step::before {
    content: '';
    position: absolute;
    top: 13px; right: 100%;
    width: 36px; height: 2px;
    background: var(--c-border);
}
.auth-step.done + .auth-step::before,
.auth-step.active + .auth-step::before { background: var(--c-gold); }

.step-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--c-border);
    color: var(--c-muted);
    font-size: .72rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.auth-step.active .step-dot { background: var(--c-navy); color: #fff; }
.auth-step.done   .step-dot { background: var(--c-gold);  color: #fff; }
.step-label {
    font-size: .7rem;
    color: var(--c-muted);
    white-space: nowrap;
}
.auth-step.active .step-label { color: var(--c-navy); font-weight: 600; }

/* ================================================================
   PASSWORD STRENGTH
   ================================================================ */
.strength-bar-wrap {
    margin-top: 8px;
}
.strength-bar-track {
    height: 4px;
    background: var(--c-border);
    border-radius: 4px;
    overflow: hidden;
}
.strength-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width .35s, background .35s;
}
.strength-hint {
    font-size: .75rem;
    margin-top: 4px;
    color: var(--c-muted);
}

/* ================================================================
   DIVIDER
   ================================================================ */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: .8rem;
    color: var(--c-muted);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .auth-panel-left { flex: 0 0 42%; padding: 40px 36px; }
    .slide h2        { font-size: 1.75rem; }
}

@media (max-width: 720px) {
    .auth-split       { flex-direction: column; }
    .auth-panel-left  { flex: none; min-height: 260px; padding: 36px 32px; }
    .panel-slides     { padding: 16px 0; }
    .slide h2         { font-size: 1.45rem; }
    .slide p,
    .slide-features   { display: none; }
    .auth-panel-right { padding: 32px 20px; }
    .auth-form-header,
    .auth-form-body,
    .auth-form-footer { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 420px) {
    .auth-form-header,
    .auth-form-body,
    .auth-form-footer { padding-left: 22px; padding-right: 22px; }
}
