/* ========================================================
   assets/css/auth.css — Luminellic Authentication Suite
   Clean Production Architecture (Zero-Redundancy Core)
   ======================================================== */

:root {
    --brand-primary: #f4a6c1;
    --brand-accent: #dca3d0;
    --brand-deep: #d1648a;
    --text-dark: #261f22;
    --text-muted: #8c7b84;
    --border-soft: rgba(244, 166, 193, 0.35);
    --gradient-accent: linear-gradient(90deg, #f6b4cb 0%, #dfaec5 100%);
    --font-title: 'Playfair Display', Georgia, serif;
    --font-sans: 'Poppins', -apple-system, sans-serif;
    --ease-silk: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: #fffafc;
    font-family: var(--font-sans);
    color: var(--text-dark);
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.theme-magic-spark, .veil-particle {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.auth-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* --------------------------------------------------------
   1. DESKTOP: 65% VISUAL STAGE (LEFT-BOTTOM DOCKED)
   -------------------------------------------------------- */
.auth-visual-pane {
    flex: 1.85;
    position: relative;
    background-image: url('https://luminellic.com/assets/images/products/6a8c15cd2569c-SecretGarden.webp');
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 5rem 3.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

.auth-visual-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(35, 26, 30, 0.45) 0%,
        rgba(35, 26, 30, 0.15) 30%,
        rgba(30, 22, 26, 0.85) 75%,
        rgba(24, 18, 21, 0.96) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.brand-logo-wrap {
    position: relative;
    z-index: 2;
    align-self: flex-start;
}
.brand-logo-wrap img {
    height: 48px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.visual-bottom-dock {
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 2rem;
    max-width: 580px;
    text-align: left;
}

.visual-title {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 3.8vw, 3.4rem);
    font-weight: 500;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}
.visual-title em {
    font-style: italic;
    font-weight: 400;
    color: #ffd6e5;
}

.visual-desc {
    font-size: 0.94rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 1.6rem;
    max-width: 480px;
}

.visual-pills-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.visual-pill {
    font-size: 0.74rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.38rem 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.visual-pane-footer {
    position: relative;
    z-index: 2;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --------------------------------------------------------
   2. DESKTOP: 35% COMPACT FORM STAGE
   -------------------------------------------------------- */
.auth-form-pane {
    flex: 1;
    background: #fffafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.8rem;
    position: relative;
    overflow-y: auto;
    border-left: 1px solid rgba(244, 166, 193, 0.25);
    box-sizing: border-box;
}

.form-stage-card {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    margin: auto 0;
}

.btn-back-boutique {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.6rem;
    transition: all 0.25s ease;
    align-self: flex-start;
    background: #ffffff;
    padding: 0.4rem 0.95rem;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(244, 166, 193, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-back-boutique:hover { 
    color: var(--brand-deep); 
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.form-main-heading {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 2.4vw, 2.3rem);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    line-height: 1.15;
    letter-spacing: -0.3px;
}
.form-main-heading em {
    font-style: italic;
    font-weight: 400;
    color: var(--brand-deep);
}

.form-sub-heading {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.auth-tab-bar {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 9999px;
    padding: 0.24rem;
    margin-bottom: 1.4rem;
    gap: 4px;
    box-shadow: 0 4px 14px rgba(220, 163, 208, 0.08);
}

.auth-tab-item {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.65rem 0.45rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s var(--ease-silk);
}

.auth-tab-item.active {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(246, 180, 203, 0.4);
}

.auth-error-banner {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 1.1rem;
    background: #fff2f4;
    color: #d9534f;
    border: 1px solid rgba(217, 83, 79, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.restriction-dialog {
    background: #fff8f8;
    border: 1.5px solid rgba(217, 83, 79, 0.35);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.3rem;
    box-shadow: 0 6px 20px rgba(217, 83, 79, 0.08);
}
.restriction-dialog strong {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    color: #c53030;
    margin-bottom: 0.35rem;
}
.restriction-dialog p {
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.45;
    margin: 0 0 0.85rem;
}
.appeal-btn {
    background: #ffffff;
    border: 1px solid rgba(217, 83, 79, 0.35);
    padding: 0.38rem 0.85rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c53030;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.appeal-btn:hover {
    background: #c53030;
    color: #ffffff;
}

.auth-form-block {
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: formFadeIn 0.25s var(--ease-silk) forwards;
}
.auth-form-block.active { display: flex; }

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.input-wrap-relative {
    position: relative;
    width: 100%;
}

.form-control-input {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: 1.5px solid var(--border-soft);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    background: #ffffff;
    color: var(--text-dark);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-control-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 14px rgba(244, 166, 193, 0.2);
}

.btn-toggle-pwd {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a18e97;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}

.btn-auth-submit {
    width: 100%;
    padding: 0.88rem 1.25rem;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    background: var(--gradient-accent);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 0.3rem;
    box-shadow: 0 5px 18px rgba(246, 180, 203, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(246, 180, 203, 0.45);
}

/* --------------------------------------------------------
   3. MOBILE HERO VIEWPORT & BOTTOM SHEET CARD
   -------------------------------------------------------- */
.mobile-header-stage {
    display: none;
}

@media (max-width: 992px) {
    html, body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .auth-visual-pane {
        display: none;
    }

    .mobile-header-stage {
        display: flex;
        width: 100%;
        height: 52vh;
        min-height: 340px;
        position: relative;
        background-image: url('https://luminellic.com/assets/images/products/6a8c15cd2569c-SecretGarden.webp');
        background-size: cover;
        background-position: center 38%;
        padding: 1.8rem 1.4rem 3.4rem;
        box-sizing: border-box;
        overflow: hidden;
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-scrim-layer {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            rgba(35, 26, 30, 0.4) 0%,
            rgba(35, 26, 30, 0.15) 30%,
            rgba(30, 22, 26, 0.8) 75%,
            rgba(24, 18, 21, 0.95) 100%
        );
        z-index: 1;
    }

    .mobile-top-action {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    .mobile-pill-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.74rem;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0.4rem 0.95rem;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.32);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-copy-dock {
        position: relative;
        z-index: 2;
        margin-top: auto;
        text-align: left;
    }

    .mobile-brand-logo {
        display: block;
        margin-bottom: 0.85rem;
    }
    .mobile-brand-logo img {
        height: 42px;
        max-width: 190px;
        width: auto;
        object-fit: contain;
        filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    }

    .mobile-title-main {
        font-family: var(--font-title);
        font-size: 2.1rem;
        font-weight: 500;
        color: #ffffff;
        line-height: 1.15;
        margin: 0 0 0.25rem;
    }
    .mobile-title-main em {
        font-style: italic;
        font-weight: 400;
        color: #ffd6e5;
    }

    .mobile-desc-main {
        font-size: 0.84rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.45;
        margin: 0;
        font-weight: 300;
    }

    .auth-form-pane {
        padding: 2.4rem 1.4rem 4rem;
        border-radius: 28px 28px 0 0;
        margin-top: -26px;
        position: relative;
        z-index: 5;
        background: #fffafc;
        border-left: none;
        box-shadow: 0 -12px 35px rgba(45, 38, 41, 0.16);
        overflow: visible;
        height: auto;
        flex: none;
        width: 100%;
    }

    .form-stage-card {
        max-width: 100%;
        margin: 0;
    }

    .desktop-only-item {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-header-stage { height: 50vh; padding: 1.5rem 1.2rem 2.8rem; }
    .form-control-input { padding: 0.76rem 0.92rem; font-size: 0.84rem; }
    .btn-auth-submit { padding: 0.85rem 1.15rem; font-size: 0.8rem; }
}