/**
 * Hair Aura — Authentication Pages Stylesheet
 * Split-screen design: left form panel, right brand image panel.
 */

:root {
    --primary:      #D4A574;
    --primary-dark: #B8935F;
    --secondary:    #2C2C2C;
    --gold:         #D4AF37;
    --auth-panel-bg: #faf9f7;
}

[data-theme='dark'] {
    --auth-panel-bg: #0b0b0b;
    --secondary: #FFFFFF;
    --text-muted-auth: rgba(255, 255, 255, 0.6);
}

[data-theme='dark'] .auth-title {
    color: #FFFFFF !important;
}

[data-theme='dark'] .auth-subtitle,
[data-theme='dark'] .auth-create-account p {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme='dark'] .auth-label {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme='dark'] .auth-input {
    background: #151515 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
}

[data-theme='dark'] .auth-input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme='dark'] .auth-checkbox-label,
[data-theme='dark'] .auth-back-link {
    color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme='dark'] .auth-panel-footer {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme='dark'] .auth-admin-badge {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--primary) !important;
}

[data-theme='dark'] .auth-back-link i {
    color: var(--primary) !important;
}

[data-theme='dark'] .auth-link,
[data-theme='dark'] .auth-forgot-link {
    color: var(--primary) !important;
}

[data-theme='dark'] .auth-input-icon {
    color: rgba(255, 255, 255, 0.4) !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===========================
   SPLIT WRAPPER
   =========================== */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===========================
   LEFT — FORM PANEL
   =========================== */
.auth-form-panel {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--auth-panel-bg);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.08);
}

.auth-form-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem 3.5rem;
    justify-content: center;
    min-height: 100vh;
}

/* Logo */
.auth-brand-link {
    display: inline-block;
    margin-bottom: 2.5rem;
    text-decoration: none;
}

.auth-brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* Heading Block */
.auth-heading {
    margin-bottom: 2rem;
}

.auth-admin-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #444 100%);
    color: #fff;
    font-size: clamp(0.576rem, 0.54rem + 1vw, 0.72rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 1.5rem + 1vw, 2rem);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    font-size: clamp(0.736rem, 0.69rem + 1vw, 0.92rem);
    color: #888;
    font-weight: 400;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-label {
    font-size: clamp(0.656rem, 0.615rem + 1vw, 0.82rem);
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.02em;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b0b0;
    font-size: clamp(0.72rem, 0.675rem + 1vw, 0.9rem);
    pointer-events: none;
    transition: color 0.2s;
}

.auth-input {
    width: 100%;
    background: #fff;
    border: 1.5px solid #e4e0d8;
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    font-size: clamp(0.76rem, 0.712rem + 1vw, 0.95rem);
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.18);
}

.auth-input:focus ~ .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--primary);
}

.auth-input::placeholder { color: #c0b8ae; }

/* Remember Me */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: -0.2rem;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.auth-checkbox-label {
    font-size: clamp(0.68rem, 0.637rem + 1vw, 0.85rem);
    color: #777;
    cursor: pointer;
    user-select: none;
}

/* Forgot Password */
.auth-forgot-link {
    font-size: clamp(0.64rem, 0.6rem + 1vw, 0.8rem);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Primary Button */
.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.76rem, 0.712rem + 1vw, 0.95rem);
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1.5rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px rgba(184, 147, 95, 0.4);
    transform: translateY(-1px);
}

.auth-btn-primary:active { transform: translateY(0); }

.auth-btn-admin:hover {
    background: linear-gradient(135deg, #444 0%, #2C2C2C 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Google Login Button */
.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: #FFFFFF;
    color: #1a1a1a;
    border: 1.5px solid #e4e0d8;
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-size: clamp(0.76rem, 0.712rem + 1vw, 0.95rem);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-top: 0.5rem;
}

.auth-btn-google:hover {
    background: #fcfcfc;
    border-color: #d4a574;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

[data-theme='dark'] .auth-btn-google {
    background: #151515;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] .auth-btn-google:hover {
    background: #1a1a1a;
    border-color: var(--primary);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #efe9e1;
}

[data-theme='dark'] .auth-divider::before,
[data-theme='dark'] .auth-divider::after {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.auth-divider:not(:empty)::before { margin-right: 1rem; }
.auth-divider:not(:empty)::after { margin-left: 1rem; }

/* Create Account / Footer Links */
.auth-create-account {
    text-align: center;
    margin-top: 1.75rem;
    font-size: clamp(0.696rem, 0.652rem + 1vw, 0.87rem);
    color: #888;
}

.auth-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Panel Footer */
.auth-panel-footer {
    margin-top: auto;
    padding-top: 2.5rem;
    border-top: 1px solid #efe9e1;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    color: #999;
    font-size: clamp(0.664rem, 0.622rem + 1vw, 0.83rem);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-back-link:hover { color: var(--primary); }

/* Content area flex grow */
.auth-content-area {
    flex: 1;
}

/* Alert overrides */
.alert {
    border-radius: 10px;
    font-size: clamp(0.704rem, 0.66rem + 1vw, 0.88rem);
    margin-bottom: 1.5rem;
}

/* ===========================
   RIGHT — IMAGE PANEL
   =========================== */
.auth-image-panel {
    flex: 1;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.auth-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.auth-image-branding {
    color: #fff;
    animation: fadeInUp 0.8s ease both;
}

.auth-image-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.24rem, 2.1rem + 1vw, 2.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.auth-image-tagline {
    font-size: clamp(0.84rem, 0.788rem + 1vw, 1.05rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.auth-image-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #f0d060;
    font-size: clamp(0.624rem, 0.585rem + 1vw, 0.78rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .auth-image-panel { display: none; }

    .auth-form-panel {
        max-width: 100%;
        box-shadow: none;
    }
}

@media (max-width: 576px) {
    .auth-form-inner {
        padding: 2rem 1.5rem;
    }

    .auth-title { font-size: clamp(1.28rem, 1.2rem + 1vw, 1.6rem); }
}
