/* =======================================================
   Maie's Salon - Authentication Screens
   ======================================================= */

.auth-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ---------- Left visual / branding panel ---------- */
.auth-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1a150f; /* Fallback */
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/luxury_salon_about.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) contrast(1.1) saturate(0.8);
    transform: scale(1.05);
    animation: backgroundMagic 40s linear infinite alternate;
    z-index: 0;
}

.auth-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(42, 34, 24, 0.9) 0%, 
        rgba(74, 60, 37, 0.6) 50%, 
        rgba(126, 105, 63, 0.4) 100%);
    z-index: 1;
}

.auth-hero > * { position: relative; z-index: 2; }

@keyframes backgroundMagic {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.auth-hero .brand {
    display: flex; 
    flex-direction: column;
    align-items: flex-start; 
    gap: 1.5rem;
    animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-hero .brand img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-hero .brand:hover img {
    transform: scale(1.03) translateY(-5px);
}
.auth-hero .brand-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0;
    color: var(--white);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-hero .hero-content { max-width: 460px; }
.auth-hero .hero-eyebrow {
    display: inline-block;
    padding: .35rem .9rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-pill);
    color: var(--gold-soft);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.auth-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.12;
    color: var(--white);
    margin: 0 0 1rem;
}
.auth-hero h1 span { color: var(--gold); font-style: italic; }
.auth-hero .hero-sub {
    color: rgba(255, 255, 255, .78);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
}

.auth-hero .hero-foot {
    display: flex; align-items: center; gap: .6rem;
    color: rgba(255, 255, 255, .65);
    font-size: .82rem;
    letter-spacing: .3px;
}
.auth-hero .hero-foot .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* ---------- Right form panel ---------- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--white);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3.5rem 3rem;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    border: 1px solid rgba(126, 105, 63, 0.1);
    backdrop-filter: blur(10px);
}

.auth-card .form-head {
    text-align: left;
    margin-bottom: 2.5rem;
}
.auth-card .form-head .eyebrow {
    font-size: .75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 1rem;
}
.auth-card .form-head h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    line-height: 1.1;
    margin: 0 0 .75rem;
    color: var(--ink);
    font-weight: 500;
}
.auth-card .form-head p {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: .25rem 0 1.4rem;
    flex-wrap: wrap;
    gap: .6rem;
}
.auth-foot {
    margin-top: 1.8rem;
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
}
.auth-foot strong { color: var(--brown-dark); }

/* ---------- Field validation (kept within brand palette) ---------- */
.form-control.is-invalid {
    border-color: var(--brown);
    box-shadow: 0 0 0 4px rgba(126, 105, 63, .12);
    background: #fbf6ea;
}
.form-control.is-invalid:focus {
    border-color: var(--brown-dark);
    box-shadow: 0 0 0 4px rgba(126, 105, 63, .22);
}
.field-error {
    margin-top: .45rem;
    color: var(--brown-dark);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.field-error::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .auth-body { grid-template-columns: 1fr; }
    .auth-hero { padding: 2rem 1.5rem; min-height: 38vh; }
    .auth-hero h1 { font-size: 2rem; }
    .auth-panel { padding: 2rem 1.2rem; }
    .auth-card { padding: 2rem 1.4rem; box-shadow: var(--shadow); }
}
