/* ==========================================================
   Salon Sphere — Login
   Palette: Sunset Coral #FF6B6B, Vivid Magenta #D6336C,
            Golden Amber #FFB020, Deep Aubergine #241528,
            Frost White #FFFFFF
   Type: Fraunces (display) / Plus Jakarta Sans (body)
   ========================================================== */

:root {
    --coral: #FF6B6B;
    --magenta: #D6336C;
    --amber: #FFB020;
    --aubergine: #241528;
    --frost: #FFFFFF;
    --ink: #2A1B2E;
    --ink-soft: rgba(42, 27, 46, 0.62);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* ---------------- LEFT HERO ---------------- */
.auth-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--coral) 0%, var(--magenta) 52%, var(--aubergine) 100%);
    display: flex;
    align-items: center;
    padding: 5vw 5.5vw;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
    animation: drift 14s ease-in-out infinite alternate;
}
.hero-glow--one {
    width: 420px; height: 420px;
    background: var(--amber);
    top: -120px; right: -80px;
}
.hero-glow--two {
    width: 340px; height: 340px;
    background: #ff9fd6;
    bottom: -100px; left: -60px;
    animation-delay: 3s;
}
@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.08); }
}

.hero-content { position: relative; z-index: 2; max-width: 460px; }

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 3.2rem;
    letter-spacing: 0.01em;
}

.hero-headline {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.08;
    color: #fff;
    margin: 0 0 1.1rem 0;
}

.hero-sub {
    color: rgba(255,255,255,0.88);
    font-size: 1.03rem;
    line-height: 1.55;
    margin: 0 0 2.4rem 0;
    max-width: 420px;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: rgba(255,255,255,0.92);
    font-size: 0.94rem;
    line-height: 1.4;
}
.hero-points .dot {
    flex: none;
    width: 8px; height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px rgba(255,176,32,0.9);
}

/* ---------------- RIGHT FORM PANEL ---------------- */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF6EE;
    padding: 6vw 3vw;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 22px;
    padding: 2.4rem 2.2rem 2rem;
    box-shadow: 0 30px 60px -25px rgba(214, 51, 108, 0.35);
}

/* Signature element: vanity mirror bulbs */
.bulb-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.6rem;
}
.bulb {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px 2px rgba(255,176,32,0.65);
    animation: pulse-bulb 2.4s ease-in-out infinite;
}
.bulb:nth-child(2) { animation-delay: 0.15s; background: var(--coral); box-shadow: 0 0 8px 2px rgba(255,107,107,0.65); }
.bulb:nth-child(3) { animation-delay: 0.3s; }
.bulb:nth-child(4) { animation-delay: 0.45s; background: var(--magenta); box-shadow: 0 0 8px 2px rgba(214,51,108,0.65); }
.bulb:nth-child(5) { animation-delay: 0.6s; }
.bulb:nth-child(6) { animation-delay: 0.75s; background: var(--coral); box-shadow: 0 0 8px 2px rgba(255,107,107,0.65); }
.bulb:nth-child(7) { animation-delay: 0.9s; }

@keyframes pulse-bulb {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

.card-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.7rem;
    margin: 0 0 0.3rem 0;
    text-align: center;
    color: var(--aubergine);
}
.card-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin: 0 0 1.7rem 0;
}

.form-alert {
    background: #FFF0F0;
    border: 1px solid #FFC9C9;
    color: #C92A2A;
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    margin-bottom: 1.1rem;
}

.field-group { margin-bottom: 1.15rem; }

.field-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--aubergine);
    margin-bottom: 0.4rem;
}

.field-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid rgba(42,27,46,0.14);
    background: rgba(255,255,255,0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}
.field-input:focus {
    border-color: var(--magenta);
    box-shadow: 0 0 0 4px rgba(214,51,108,0.14);
}

.password-wrap { position: relative; }
.toggle-pw {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(42,27,46,0.45);
    cursor: pointer;
    padding: 4px;
    display: flex;
}
.toggle-pw.is-visible { color: var(--magenta); }

.field-error {
    display: block;
    color: #C92A2A;
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

.field-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    cursor: pointer;
}
.remember-me input { accent-color: var(--magenta); width: 15px; height: 15px; }

.btn-signin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--coral), var(--magenta));
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 12px 24px -10px rgba(214,51,108,0.55);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-signin:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -10px rgba(214,51,108,0.65); }
.btn-signin:active { transform: translateY(0); }

.card-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin: 1.4rem 0 0 0;
}

/* ---------------- Accessibility & responsive ---------------- */
.field-input:focus-visible,
.btn-signin:focus-visible,
.toggle-pw:focus-visible {
    outline: 2px solid var(--magenta);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow, .bulb { animation: none; }
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero { padding: 10vw 8vw 8vw; }
    .hero-headline { font-size: 2rem; }
    .hero-points { display: none; }
    .auth-form-panel { padding: 10vw 8vw; }
}
