/* =========================================
   DISTROBUBBLE - AUTH PAGES CSS
   Dark Purple Theme — Premium Next-Gen
   Shared by: login, register, forgot, reset, create-password
   ========================================= */

/* ============ DARK THEME (Default) ============ */
:root, [data-theme="dark"] {
    /* Brand Colors */
    --brand-purple: #A855F7;
    --brand-purple-dark: #7E22CE;
    --brand-purple-deep: #581C87;
    --brand-purple-light: #C084FC;
    --brand-purple-glow: rgba(168, 85, 247, 0.25);
    --brand-purple-glow-strong: rgba(168, 85, 247, 0.45);
    --brand-tint: rgba(168, 85, 247, 0.12);
    --brand-tint-soft: rgba(168, 85, 247, 0.06);
    --brand-border: rgba(168, 85, 247, 0.30);
    --logo-purple: #A855F7;

    /* Surfaces */
    --bg-base: #0A0A0A;
    --bg-surface: #111113;
    --bg-surface-light: #1A1A1E;
    --bg-input: #0F0F12;
    --border-color: #27272A;
    --border-input: #2E2E33;

    /* Text */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --text-placeholder: #52525B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%);
    --gradient-logo: linear-gradient(135deg, #A855F7 0%, #3B82F6 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.8);
    --glow-purple: 0 0 25px rgba(168, 85, 247, 0.35);

    /* Orb opacity */
    --orb-opacity: 0.20;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ LIGHT THEME ============ */
[data-theme="light"] {
    --brand-purple: #9333EA;
    --brand-purple-dark: #7E22CE;
    --brand-purple-deep: #581C87;
    --brand-purple-light: #A855F7;
    --brand-purple-glow: rgba(147, 51, 234, 0.20);
    --brand-purple-glow-strong: rgba(147, 51, 234, 0.35);
    --brand-tint: rgba(147, 51, 234, 0.10);
    --brand-tint-soft: rgba(147, 51, 234, 0.05);
    --brand-border: rgba(147, 51, 234, 0.25);
    --logo-purple: #9333EA;

    --bg-base: #FAFAFB;
    --bg-surface: #FFFFFF;
    --bg-surface-light: #F5F5F7;
    --bg-input: #F4F4F6;
    --border-color: #E8E8EC;
    --border-input: #E0E0E5;

    --text-primary: #0A0A0B;
    --text-secondary: #4A4A52;
    --text-muted: #8B8B93;
    --text-placeholder: #AAAAAA;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.14);

    --orb-opacity: 0.15;
}

/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { font-size: 16px; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

h1, h2, h3, h4, h5 {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.03em;
    font-weight: 800;
}

/* ============ BACKGROUND ORBS ============ */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: var(--orb-opacity);
    animation: float 20s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.orb-1 { width: 500px; height: 500px; background: var(--brand-purple); top: -200px; left: -200px; }
.orb-2 { width: 400px; height: 400px; background: var(--brand-purple-light); bottom: -150px; right: -100px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: var(--brand-purple-dark); top: 50%; left: 50%; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 5px;
    z-index: 100;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.theme-toggle:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-border);
}

.theme-toggle i {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: absolute;
}

.theme-toggle .toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 24px; height: 24px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--brand-purple-glow);
    z-index: 2;
}

[data-theme="dark"] .theme-toggle .toggle-knob { transform: translateX(28px); }
.theme-toggle .sun-icon { left: 8px; opacity: 1; color: var(--brand-purple); }
.theme-toggle .moon-icon { right: 8px; opacity: 0.4; }
[data-theme="dark"] .theme-toggle .sun-icon { opacity: 0.4; color: var(--text-muted); }
[data-theme="dark"] .theme-toggle .moon-icon { opacity: 1; color: var(--brand-purple); }

/* ============ LAYOUT ============ */
.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
    align-items: center;
}

/* ============ LEFT BRAND PANEL ============ */
.brand-panel {
    padding: 60px clamp(40px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
    height: 100%;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-family: 'Sora', sans-serif;
    margin-bottom: 30px;
    width: fit-content;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.brand-badge:hover {
    border-color: var(--brand-border);
    box-shadow: 0 4px 16px var(--brand-tint);
}

.brand-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand-purple);
    box-shadow: 0 0 12px var(--brand-purple), 0 0 20px var(--brand-purple-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.brand-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.brand-heading .gradient-text {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light), var(--brand-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradientShift 4s ease infinite;
    font-style: italic;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.brand-description {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 40px;
}

.brand-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.platforms-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    margin-bottom: 15px;
}

/* ============ PLATFORM MARQUEE ============ */
.platforms-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.platforms-track {
    display: flex;
    gap: 10px;
    animation: scrollPlatformsLeft 40s linear infinite;
    width: max-content;
    padding: 4px 0;
}

.platforms-track.reverse {
    animation: scrollPlatformsRight 45s linear infinite;
}

.platforms-track:hover {
    animation-play-state: paused;
}

@keyframes scrollPlatformsLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollPlatformsRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    transition: all 0.3s;
    font-family: 'Sora', sans-serif;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.platform-pill:hover {
    border-color: var(--brand-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--brand-purple-glow);
}

.platform-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.platform-pill:hover .platform-icon {
    transform: rotate(-8deg) scale(1.15);
}

/* ============ RIGHT AUTH PANEL ============ */
.auth-panel {
    padding: 40px clamp(20px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow-y: auto;
}

/* ============ AUTH CARD ============ */
.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 30px);
    width: 100%;
    max-width: 480px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: cardIn 0.6s ease-out;
    transition: var(--transition);
    scrollbar-width: thin;
}

.auth-card::-webkit-scrollbar { width: 6px; }
.auth-card::-webkit-scrollbar-track { background: transparent; }
.auth-card::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.auth-card::-webkit-scrollbar-thumb:hover { background: var(--brand-purple); }

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-purple-light), var(--brand-purple));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 10;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ TABS ============ */
.auth-tabs {
    display: flex;
    background: var(--bg-surface-light);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-family: 'Sora', sans-serif;
    user-select: none;
}

.auth-tab:hover {
    color: var(--brand-purple);
    background: var(--brand-tint-soft);
}

.auth-tab.active {
    color: white;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    box-shadow: 0 4px 16px var(--brand-purple-glow);
}

/* ============ CARD LOGO ============ */
.card-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-surface-light), var(--bg-surface));
    border-radius: 14px;
    border: 1px solid var(--border-color);
    position: relative;
}

.card-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

/* ============ TITLES ============ */
.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

/* ============ FORMS ============ */
.auth-form { display: block; }

.form-group {
    margin-bottom: 12px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: 'Sora', sans-serif;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper:focus-within .input-icon {
    color: var(--brand-purple);
}

.form-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    min-height: 42px;
}

.form-input::placeholder { color: var(--text-placeholder); }

.form-input:focus {
    border-color: var(--brand-purple);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--brand-tint);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--brand-purple);
    transform: scale(1.1);
}

/* ============ PASSWORD STRENGTH ============ */
.password-strength {
    margin-top: 4px;
    display: none;
}

.password-strength.active { display: block; }

.strength-bars {
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
    height: 3px;
}

.strength-bar {
    flex: 1;
    height: 100%;
    background: var(--border-color);
    border-radius: 2px;
    transition: var(--transition);
}

.strength-text {
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    min-height: 10px;
}

/* ============ FORM OPTIONS ============ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.85rem;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-wrapper input { display: none; }

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-input);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    background: var(--bg-input);
}

.checkbox-custom i {
    font-size: 0.6rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.checkbox-wrapper input:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    border-color: transparent;
    box-shadow: 0 2px 8px var(--brand-purple-glow);
}

.checkbox-wrapper input:checked ~ .checkbox-custom i { opacity: 1; }

.forgot-link {
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--brand-purple-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============ SUBMIT BUTTON ============ */
.submit-btn {
    width: 100%;
    padding: 13px;
    background: #FFFFFF;
    color: #0A0A0A;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
    min-height: 46px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .submit-btn {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    color: #FFFFFF;
    box-shadow: 0 6px 20px var(--brand-purple-glow);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before { left: 100%; }

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25), 0 0 25px var(--brand-purple-glow);
}

[data-theme="light"] .submit-btn:hover {
    box-shadow: 0 10px 28px var(--brand-purple-glow-strong);
}

.submit-btn:active { transform: translateY(0); }
.submit-btn i { transition: var(--transition); }
.submit-btn:hover i { transform: translateX(5px); }

/* ============ ROLE SELECTION ============ */
.role-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-family: 'Sora', sans-serif;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.role-option { position: relative; cursor: pointer; }
.role-option input { display: none; }

.role-card {
    padding: 15px 10px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.role-card:hover {
    border-color: var(--brand-border);
    background: var(--brand-tint-soft);
}

.role-card i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.role-card span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Sora', sans-serif;
    transition: var(--transition);
}

.role-option input:checked ~ .role-card {
    border-color: var(--brand-purple);
    background: linear-gradient(135deg, var(--brand-tint), var(--brand-tint-soft));
    box-shadow: 0 0 0 4px var(--brand-tint), 0 4px 16px var(--brand-tint);
}

.role-option input:checked ~ .role-card i,
.role-option input:checked ~ .role-card span {
    color: var(--brand-purple);
}

/* ============ FILE UPLOAD ============ */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-input);
}

.file-upload:hover {
    border-color: var(--brand-purple);
    background: var(--brand-tint-soft);
    transform: translateY(-2px);
}

.file-upload i {
    font-size: 1.8rem;
    color: var(--brand-purple);
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 0 8px var(--brand-purple-glow));
}

.file-upload p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* Compact file upload (register page) */
.file-upload.compact {
    padding: 9px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer;
    border-radius: 10px;
    border: 1.5px dashed var(--border-color);
    background: var(--bg-surface-light);
    transition: all 0.2s;
    min-height: 40px;
}

.file-upload.compact:hover {
    border-color: var(--brand-purple);
    background: var(--brand-tint-soft);
    transform: none;
}

.file-upload.compact i {
    font-size: 1rem;
    color: var(--brand-purple);
    flex-shrink: 0;
    margin: 0;
    filter: none;
}

.file-upload.compact p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* ============ INFO NOTE ============ */
.info-note {
    background: linear-gradient(135deg, var(--brand-tint-soft), var(--bg-surface));
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
    margin: 8px 0;
    line-height: 1.5;
}

.info-note i {
    color: var(--brand-purple);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============ SWITCH TEXT ============ */
.switch-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

.switch-text a {
    color: var(--brand-purple);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.switch-text a:hover {
    color: var(--brand-purple-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============ ALERTS ============ */
.alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

.alert i { flex-shrink: 0; margin-top: 2px; font-size: 1rem; }

.alert-error {
    background: linear-gradient(135deg, var(--brand-tint), var(--brand-tint-soft));
    border: 1px solid var(--brand-border);
    color: var(--brand-purple);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.10), rgba(16, 185, 129, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #059669;
}

[data-theme="dark"] .alert-success { color: #34D399; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ MOBILE BRAND ============ */
.mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-brand img {
    height: 50px;
    width: auto;
}

/* ============ TOAST ============ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: flex-end;
}

.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-purple);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg), 0 0 20px var(--brand-tint);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    width: 100%;
    pointer-events: auto;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============ REGISTER 2-COLUMN GRID ============ */
.form-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    margin-bottom: 4px;
    width: 100%;
}

.form-grid-2 .form-group {
    margin-bottom: 4px !important;
    min-width: 0;
}

.form-grid-2 .form-group label {
    font-size: 0.68rem !important;
    margin-bottom: 5px !important;
}

.form-grid-2 .form-input,
.form-grid-2 .input-wrapper .form-input {
    padding: 9px 12px 9px 34px !important;
    font-size: 0.82rem !important;
    height: 40px !important;
    min-height: 40px !important;
}

.form-grid-2 .input-icon {
    font-size: 0.75rem !important;
    left: 11px !important;
}

.form-grid-2 .password-toggle {
    right: 8px !important;
    padding: 5px !important;
    font-size: 0.78rem !important;
}

.form-grid-2 .password-strength {
    margin-top: 4px !important;
}

.form-grid-2 .strength-bars {
    height: 3px !important;
    gap: 3px;
}

.form-grid-2 .strength-text {
    font-size: 0.65rem !important;
    margin-top: 2px;
    min-height: 10px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .mobile-brand { display: block; }
    .auth-panel { padding: 80px 20px 40px; }
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr !important;
    }
    .auth-card {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 500px) {
    .auth-card { padding: 20px 16px; border-radius: 16px; }
    .auth-title { font-size: 1.2rem; }
    .role-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .role-card { padding: 12px 6px; }
    .role-card i { font-size: 1rem; }
    .role-card span { font-size: 0.7rem; }
    .form-options { flex-direction: column; align-items: flex-start; gap: 8px; }
    .theme-toggle { top: 15px; right: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .orb { animation: none; }
}


.info-note a {
    color: #B04DFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.info-note a:hover {
    color: #C084FC;
    text-decoration: underline;
}

.info-note a:visited {
    color: #B04DFF;
}

.info-note {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.7;
}

.info-note label {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.info-note input[type="checkbox"] {
    accent-color: #B04DFF;
    vertical-align: middle;
    margin: 0 4px 0 0;
}

.info-note a,
.info-note a:visited {
    color: #B04DFF;
    text-decoration: none;
    font-weight: 500;
    overflow-wrap: anywhere;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.info-note a:hover,
.info-note a:focus-visible {
    color: #C084FC;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .info-note {
        padding: 10px;
        gap: 6px;
        border-radius: 12px;
    }

    .info-note label {
        font-size: 11px;
        line-height: 1.8;
    }

    .info-note a {
        display: inline;
        overflow-wrap: anywhere;
    }

    .info-note input[type="checkbox"] {
        min-width: 14px;
        min-height: 14px;
    }
}
