/* ==========================================================
   Salon Sphere (Jawed Habib) — Login
   Palette:
     Primary Red:       #D71920
     Pure White:        #FFFFFF
     Light Blush:       #FFF1F1
     Light Grey:        #F4F5F7
     Accent Deep Red:   #A81018
     Text Grey:         #555555
   (ZERO BLACK USED)
   Type: Fraunces (display) / Plus Jakarta Sans (body)
   ========================================================== */

:root {
    --primary-red: #D71920;
    --pure-white: #FFFFFF;
    --light-blush: #FFF1F1;
    --light-grey: #F4F5F7;
    --deep-red: #A81018;
    --text-grey: #555555;

    /* Semantic Compatibility Aliases */
    --coral: #D71920;
    --magenta: #A81018;
    --amber: #D71920;
    --aubergine: #A81018;
    --frost: #FFFFFF;
    --ink: #A81018;
    --ink-soft: #555555;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-grey);
    background-color: var(--light-grey);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* ---------------- LEFT HERO (Pure Red to Deep Red Gradient) ---------------- */
.auth-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--deep-red) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5vw 5.5vw 4vw 5.5vw;
    min-height: 100vh;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
    animation: drift 14s ease-in-out infinite alternate;
}

.hero-glow--one {
    width: 440px;
    height: 440px;
    background: var(--primary-red);
    top: -120px;
    right: -80px;
}

.hero-glow--two {
    width: 360px;
    height: 360px;
    background: var(--deep-red);
    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;
    width: 100%;
    margin: auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-logo-big {
    width: min(500px, 92%);
    max-height: 460px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.16));
    transition: transform 0.3s ease;
}

.hero-logo-big:hover {
    transform: scale(1.02);
}

.hero-brand-title {
    color: var(--pure-white);
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.01em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-bottom-text {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    z-index: 2;
    color: var(--pure-white);
    opacity: 0.85;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* ---------------- RIGHT FORM PANEL (Pure White Background) ---------------- */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pure-white);
    padding: 6vw 3vw;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--pure-white);
    border: 1px solid rgba(215, 25, 32, 0.15);
    border-radius: 22px;
    padding: 2.4rem 2.2rem 2rem;
    box-shadow: 0 30px 60px -25px rgba(215, 25, 32, 0.18);
}

/* 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(--primary-red);
    box-shadow: 0 0 8px 2px rgba(215, 25, 32, 0.65);
    animation: pulse-bulb 2.4s ease-in-out infinite;
}

.bulb:nth-child(2) {
    animation-delay: 0.15s;
    background: var(--deep-red);
    box-shadow: 0 0 8px 2px rgba(168, 16, 24, 0.65);
}

.bulb:nth-child(3) {
    animation-delay: 0.3s;
    background: var(--primary-red);
    box-shadow: 0 0 8px 2px rgba(215, 25, 32, 0.65);
}

.bulb:nth-child(4) {
    animation-delay: 0.45s;
    background: var(--deep-red);
    box-shadow: 0 0 8px 2px rgba(168, 16, 24, 0.65);
}

.bulb:nth-child(5) {
    animation-delay: 0.6s;
    background: var(--primary-red);
    box-shadow: 0 0 8px 2px rgba(215, 25, 32, 0.65);
}

.bulb:nth-child(6) {
    animation-delay: 0.75s;
    background: var(--deep-red);
    box-shadow: 0 0 8px 2px rgba(168, 16, 24, 0.65);
}

.bulb:nth-child(7) {
    animation-delay: 0.9s;
    background: var(--primary-red);
    box-shadow: 0 0 8px 2px rgba(215, 25, 32, 0.65);
}

@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(--deep-red);
}

.card-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-grey);
    margin: 0 0 1.7rem 0;
}

.form-alert {
    background: var(--light-blush);
    border: 1px solid rgba(215, 25, 32, 0.25);
    color: var(--deep-red);
    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(--deep-red);
    margin-bottom: 0.4rem;
}

.field-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid rgba(85, 85, 85, 0.2);
    background: var(--pure-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-grey);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.field-input:focus {
    border-color: var(--primary-red);
    color: var(--deep-red);
    box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.15);
}

.password-wrap {
    position: relative;
}

.toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-grey);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.toggle-pw:hover {
    color: var(--primary-red);
}

.field-error {
    display: block;
    color: var(--primary-red);
    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(--text-grey);
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary-red);
    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(--primary-red), var(--deep-red));
    color: var(--pure-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 12px 24px -10px rgba(215, 25, 32, 0.5);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-signin:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -10px rgba(215, 25, 32, 0.6);
}

.btn-signin:active {
    transform: translateY(0);
}

.card-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-grey);
    margin: 1.4rem 0 0 0;
}

/* ---------------- Accessibility & responsive ---------------- */
.field-input:focus-visible,
.btn-signin:focus-visible,
.toggle-pw:focus-visible {
    outline: 2px solid var(--primary-red);
    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 12vw;
        min-height: auto;
    }

    .hero-logo-big {
        width: min(300px, 85%);
        max-height: 280px;
    }

    .hero-bottom-text {
        bottom: 1rem;
        left: 1.25rem;
        font-size: 0.72rem;
    }

    .auth-form-panel {
        padding: 10vw 8vw;
    }
}