/* ==========================================================================
   Stoxly.io — Modern Split-Screen Authentication Styles (Concept 1)
   Supports Dark & Light Theme Parity, Responsive Breakpoints,
   and 3-Pillar Institutional Showcase
   ========================================================================== */

:root {
    --gradient-violet: linear-gradient(135deg, #7B298A 0%, #C22F7F 100%);
    --gradient-magenta: linear-gradient(135deg, #CE3079 0%, #E85343 100%);
    --gradient-orange: linear-gradient(135deg, #EA5241 0%, #F28E35 100%);
    --gradient-yellow: linear-gradient(135deg, #EF7D38 0%, #F9B82F 100%);
    --gradient-logo: linear-gradient(90deg, #7B298A 0%, #CE3079 33%, #EA5241 66%, #F9B82F 100%);

    --color-violet: #8e2de2;
    --color-magenta: #CE3079;
    --color-pink: #ec4899;
    --color-orange: #EA5241;
    --color-gold: #f9b82f;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-blue: #3b82f6;

    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Dark Theme Defaults */
    --bg-deep: #07060a;
    --bg-surface: #0e0d14;
    --bg-showcase: #0b0a12;
    --bg-card: rgba(20, 18, 30, 0.72);
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-input-focus: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-input: rgba(255, 255, 255, 0.11);
    --text-white: #ffffff;
    --text-primary: #f1f0f5;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inactive: #64748b;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.55);
}

html.light-theme {
    --bg-deep: #f8fafc;
    --bg-surface: #ffffff;
    --bg-showcase: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-input: #f8fafc;
    --bg-input-focus: #ffffff;
    --border-glass: #e2e8f0;
    --border-input: #cbd5e1;
    --text-white: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inactive: #94a3b8;
    --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   Split-Screen Layout Architecture
   ========================================================================== */
.split-auth-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    min-height: 100vh;
    position: relative;
}

@media (max-width: 1024px) {
    .split-auth-layout {
        grid-template-columns: 1fr;
    }
    .showcase-pane {
        display: none !important;
    }
}

/* ==========================================================================
   Left Pane: Interactive Form Studio
   ========================================================================== */
.form-pane {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 3.5rem;
    background: var(--bg-deep);
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

@media (max-width: 640px) {
    .form-pane {
        padding: 1.5rem 1.25rem;
    }
}

.form-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Stoxly Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-white);
}
.logo-svg {
    width: 58px;
    height: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand-logo:hover .logo-svg {
    transform: scale(1.05) rotate(-2deg);
}
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-family: var(--font-headings);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--text-white);
}
.logo-dot {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-tagline {
    font-size: 0.7rem;
    font-style: italic;
    color: var(--text-muted);
}

.header-utility-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.back-home-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: var(--bg-input);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}
.back-home-link:hover {
    color: var(--text-white);
    border-color: var(--color-magenta);
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.2s;
}
.theme-btn:hover {
    color: var(--color-gold);
    border-color: var(--color-magenta);
}

/* Form Container */
.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 2rem auto;
}

/* Mode Switcher Segmented Pill */
.auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.75rem;
}
.auth-mode-tab {
    padding: 0.65rem 1rem;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.auth-mode-tab:hover {
    color: var(--text-white);
}
.auth-mode-tab.active {
    background: var(--gradient-magenta);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(206, 48, 121, 0.3);
}

/* Context & Error Banners */
.auth-alert-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.25s ease;
}
.auth-alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}
.auth-alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}
.auth-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.context-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.83rem;
    font-weight: 500;
    animation: fadeIn 0.25s ease;
}
.context-banner.banner-redirect {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
.context-banner.banner-plan {
    background: rgba(206, 48, 121, 0.12);
    border: 1px solid rgba(206, 48, 121, 0.35);
    color: var(--color-pink);
}
.context-banner.banner-referral {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.auth-title {
    font-family: var(--font-headings);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}
.auth-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Social / Quick Auth Row */
.social-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.68rem 1rem;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-social:hover {
    background: var(--bg-input-focus);
    border-color: var(--color-magenta);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.25rem 0;
    color: var(--text-inactive);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

/* Form Inputs */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
@media (max-width: 480px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }
}

.modern-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.05rem;
}
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modern-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.forgot-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-pink);
    text-decoration: none;
    transition: opacity 0.2s;
}
.forgot-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.composite-input {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    transition: all 0.2s ease;
    overflow: hidden;
}
.composite-input:focus-within {
    background: var(--bg-input-focus);
    border-color: var(--color-magenta);
    box-shadow: 0 0 0 3px rgba(206, 48, 121, 0.16);
}
.composite-input.has-error {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}
.input-icon {
    position: absolute;
    left: 13px;
    font-size: 1.08rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}
.composite-input:focus-within .input-icon {
    color: var(--color-magenta);
}
.modern-input {
    width: 100%;
    padding: 0.72rem 0.9rem 0.72rem 2.55rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
}
.modern-input::placeholder {
    color: var(--text-inactive);
}
.input-action-btn {
    background: transparent;
    border: none;
    padding: 0 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.input-action-btn:hover {
    color: var(--color-magenta);
}

.modern-error-msg {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--color-danger);
    margin-top: 2px;
}
.modern-error-msg.show {
    display: flex;
}

/* Password Strength Indicator */
.pw-strength-wrap {
    margin-top: 6px;
}
.pw-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 6px;
}
.pw-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border-glass);
    transition: background-color 0.25s ease;
}
.pw-reqs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}
.pw-req-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.pw-req-item.met {
    color: var(--color-success);
}

/* Checkbox Row */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1rem 0 1.35rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.checkbox-row input[type="checkbox"] {
    accent-color: var(--color-magenta);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
}
.checkbox-row a {
    color: var(--color-pink);
    text-decoration: none;
    font-weight: 600;
}
.checkbox-row a:hover {
    text-decoration: underline;
}

/* Primary Submit Button */
.btn-auth-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: var(--gradient-magenta);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 6px 20px rgba(206, 48, 121, 0.32);
    transition: all 0.25s ease;
}
.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(206, 48, 121, 0.45);
}

.auth-switch-prompt {
    text-align: center;
    margin-top: 1.35rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.auth-switch-btn {
    background: none;
    border: none;
    color: var(--color-pink);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    margin-left: 4px;
    text-decoration: none;
}
.auth-switch-btn:hover {
    text-decoration: underline;
}

.form-pane-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: var(--text-inactive);
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}
.form-pane-footer a {
    color: var(--text-muted);
    text-decoration: none;
}
.form-pane-footer a:hover {
    color: var(--color-pink);
}

/* ==========================================================================
   Right Pane: Live Stoxly Institutional Showcase
   ========================================================================== */
.showcase-pane {
    background: var(--bg-showcase);
    border-left: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    pointer-events: none;
}
.glow-blob-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--color-violet) 0%, transparent 70%);
    top: -80px;
    right: -80px;
}
.glow-blob-2 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, var(--color-magenta) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
}

.showcase-inner {
    position: relative;
    z-index: 2;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}

.showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(206, 48, 121, 0.14);
    border: 1px solid rgba(206, 48, 121, 0.35);
    color: var(--color-pink);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.showcase-heading {
    font-family: var(--font-headings);
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.showcase-heading span {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.showcase-lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Pillar Preview Stack */
.pillar-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.pillar-preview-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.15rem 1.35rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.pillar-preview-card:hover {
    transform: translateX(4px);
    border-color: rgba(206, 48, 121, 0.4);
}
.ppc-left {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}
.ppc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.ppc-title {
    font-family: var(--font-headings);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
}
.ppc-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.ppc-metric {
    text-align: right;
    flex-shrink: 0;
}
.ppc-metric-val {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-success);
}
.ppc-metric-sub {
    font-size: 0.72rem;
    color: var(--text-inactive);
}

/* Testimonial Quote Card */
.showcase-quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
}
.sq-text {
    font-size: 0.86rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.9rem;
}
.sq-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sq-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.sq-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-magenta);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.sq-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-white);
    display: block;
}
.sq-role {
    font-size: 0.74rem;
    color: var(--text-muted);
}
.sq-stars {
    color: var(--color-gold);
    font-size: 0.78rem;
    letter-spacing: 2px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Email Verification Code (6-Digit OTP) Styles
   ========================================================================== */
.verify-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(206, 48, 121, 0.14);
    border: 1px solid rgba(206, 48, 121, 0.35);
    color: var(--color-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 8px 24px rgba(206, 48, 121, 0.18);
}
.verify-email-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}
.verify-email-pill a,
.verify-email-pill button {
    background: none;
    border: none;
    color: var(--color-pink);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 0.25rem;
    text-decoration: none;
}
.verify-email-pill a:hover,
.verify-email-pill button:hover {
    text-decoration: underline;
}

.otp-digits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.otp-digit-input {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    color: var(--text-white);
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}
.otp-digit-input:focus {
    background: var(--bg-input-focus);
    border-color: var(--color-magenta);
    box-shadow: 0 0 0 3px rgba(206, 48, 121, 0.2);
    transform: translateY(-2px);
}
.otp-digit-input.filled {
    border-color: rgba(16, 185, 129, 0.5);
}
.resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}
.resend-btn {
    background: none;
    border: none;
    color: var(--color-pink);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.83rem;
    text-decoration: none;
}
.resend-btn:disabled {
    color: var(--text-inactive);
    cursor: not-allowed;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-view {
    animation: fadeIn 0.28s ease forwards;
}

