/**
 * Auth Pages Styles - ELITE PRO MAX Edition
 * Premium Registration & Login Experience
 * Version: 2.0 Vietnamese Elite
 */

/* ========================================
   Root Variables
======================================== */
:root {
    --elite-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --elite-gradient-2: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --elite-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --elite-glow-primary: 0 0 60px rgba(102, 126, 234, 0.5);
    --elite-glow-secondary: 0 0 60px rgba(168, 85, 247, 0.4);
    --elite-glass: rgba(17, 17, 34, 0.85);
    --elite-glass-border: rgba(255, 255, 255, 0.1);
    --elite-text-primary: #ffffff;
    --elite-text-secondary: rgba(255, 255, 255, 0.7);
    --elite-accent: #8b5cf6;
    --elite-success: #10b981;
    --elite-danger: #ef4444;
    --elite-warning: #f59e0b;
}

/* ========================================
   Main Auth Page - Animated Mesh Background
======================================== */
.auth-page {
    min-height: 100vh;
    background: #0a0a1a;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 80% at 20% 30%, rgba(102, 126, 234, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 70% 70% at 60% 80%, rgba(79, 172, 254, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 30% 90%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes meshMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-2%, 2%) rotate(1deg);
    }

    50% {
        transform: translate(2%, -2%) rotate(-1deg);
    }

    75% {
        transform: translate(-1%, -1%) rotate(0.5deg);
    }
}

/* Floating Orbs */
.auth-page::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: orbFloat 15s ease-in-out infinite;
    z-index: 0;
    filter: blur(60px);
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-50px, 50px) scale(1.1);
    }

    66% {
        transform: translate(30px, -30px) scale(0.95);
    }
}

.auth-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ========================================
   Left Side - Elite Branding Panel
======================================== */
.auth-branding {
    flex: 1;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Grid Background */
.auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(102, 126, 234, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Glowing Orbs */
.auth-branding::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: glowPulse 8s ease-in-out infinite;
    filter: blur(80px);
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.branding-content {
    position: relative;
    max-width: 500px;
    color: white;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2.5rem;
    text-decoration: none;
    position: relative;
}

.brand-logo i {
    font-size: 3rem;
    background: var(--elite-gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.5));
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(79, 172, 254, 0.8));
    }
}

.brand-logo span {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.branding-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 5s linear infinite;
    background-size: 200% auto;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.branding-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.9;
}

.branding-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: var(--elite-glow-primary);
}

.feature-item i {
    color: #4ade80;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5));
}

/* ========================================
   Right Side - Form Container
======================================== */
.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* Animated Background Particles */
.auth-form-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: floatParticle 12s ease-in-out infinite;
    filter: blur(50px);
}

.auth-form-container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -50px;
    animation: floatParticle 10s ease-in-out infinite reverse;
    filter: blur(40px);
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.auth-form-wrapper {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

/* ========================================
   ELITE Premium Form Card
======================================== */
.premium-form {
    background: var(--elite-glass);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--elite-glass-border);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 -20px 80px -20px rgba(139, 92, 246, 0.15) inset;
    animation: formAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes formAppear {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animated Border Glow
.premium-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(102, 126, 234, 0) 0%,
            rgba(102, 126, 234, 0.5) 25%,
            rgba(168, 85, 247, 0.5) 50%,
            rgba(79, 172, 254, 0.5) 75%,
            rgba(102, 126, 234, 0) 100%);
    border-radius: 34px;
    z-index: -1;
    background-size: 400% 400%;
    animation: borderGlow 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
} */

.premium-form:hover::before {
    opacity: 1;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   Form Header - Elite Style
======================================== */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: badgeFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    25% {
        transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    }

    50% {
        transform: translateY(-5px) rotateX(0) rotateY(5deg);
    }

    75% {
        transform: translateY(-12px) rotateX(-3deg) rotateY(0);
    }
}

.logo-badge::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: inherit;
    border-radius: inherit;
    filter: blur(30px);
    opacity: 0.5;
    z-index: -1;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.logo-badge i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
}

.auth-title.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 5s linear infinite;
    background-size: 200% auto;
}

.auth-subtitle {
    color: var(--elite-text-secondary);
    font-size: 1rem;
}

/* ========================================
   Premium Input Fields
======================================== */
.form-floating-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: rgba(139, 92, 246, 0.8);
    font-size: 1.35rem;
    z-index: 2;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.premium-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    color: var(--elite-text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.premium-input:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(10, 10, 30, 0.8);
}

.premium-input:focus {
    outline: none;
    border-color: var(--elite-accent);
    background: rgba(10, 10, 30, 0.9);
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(139, 92, 246, 0.2),
        0 0 80px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.premium-input:focus~.input-icon {
    color: var(--elite-accent);
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
    transform: scale(1.1);
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.premium-input.is-invalid {
    border-color: var(--elite-danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Input Label Animation */
.input-wrapper label {
    position: absolute;
    left: 3.5rem;
    /* top: 50%; */
    transform: translateY(-50%);
    color: rgba(249, 4, 4, 0.5);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    padding: 0 0.75rem;
}

.premium-input:focus+label,
.premium-input:not(:placeholder-shown)+label {
    top: 0;
    left: 2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--elite-accent);
    background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 30, 1) 45%);
    transform: translateY(-50%) scale(0.95);
}

.form-hint {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.625rem;
    padding-left: 0.75rem;
}

.form-hint i {
    margin-right: 0.375rem;
    color: var(--elite-accent);
}

/* Gmail Badge */
.input-badge {
    position: absolute;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gmail-badge {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc05 50%, #34a853 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.3);
    animation: badgeShine 3s linear infinite;
}

@keyframes badgeShine {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }

    100% {
        filter: brightness(1);
    }
}

.optional {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-size: 0.85rem;
}

/* ========================================
   Password Toggle
======================================== */
.password-wrapper .password-toggle {
    position: absolute;
    right: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.password-wrapper .password-toggle:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--elite-accent);
    border-color: var(--elite-accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ========================================
   Password Strength - Elite Meter
======================================== */
.password-strength-container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strength-bar {
    flex: 1;
    height: 8px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.strength-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: strengthShimmer 2s linear infinite;
}

@keyframes strengthShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.strength-progress {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #64748b;
    position: relative;
}

.strength-progress.weak {
    background: linear-gradient(90deg, #ef4444, #f87171);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.strength-progress.medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.strength-progress.strong {
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.strength-progress.very-strong {
    background: linear-gradient(90deg, #667eea, #8b5cf6, #a855f7);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    animation: rainbowGlow 2s linear infinite;
}

@keyframes rainbowGlow {

    0%,
    100% {
        filter: hue-rotate(0deg);
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    }

    50% {
        filter: hue-rotate(30deg);
        box-shadow: 0 0 35px rgba(139, 92, 246, 0.7);
    }
}

.strength-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--elite-text-secondary);
    min-width: 90px;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Password Requirements - Elite Checklist
======================================== */
.password-requirements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(79, 172, 254, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.password-requirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: reqShine 4s linear infinite;
}

@keyframes reqShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.5rem;
    border-radius: 8px;
}

.requirement i {
    font-size: 1rem;
    transition: all 0.4s ease;
    width: 20px;
    text-align: center;
}

.requirement.passed {
    color: var(--elite-success);
    background: rgba(16, 185, 129, 0.1);
}

.requirement.passed i {
    color: var(--elite-success);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
    animation: checkBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ========================================
   Password Match Indicator
======================================== */
.password-match {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--elite-success);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: matchAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes matchAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.password-match i {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

/* ========================================
   Terms Checkbox - Elite Style
======================================== */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.terms-checkbox .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0;
    background: rgba(10, 10, 30, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.terms-checkbox .form-check-input:hover {
    border-color: var(--elite-accent);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.terms-checkbox .form-check-input:checked {
    background: var(--elite-accent);
    border-color: var(--elite-accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.terms-checkbox .form-check-label {
    color: var(--elite-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.terms-link {
    color: var(--elite-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.terms-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--elite-accent);
    transition: width 0.3s ease;
}

.terms-link:hover {
    color: #a5b4fc;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.terms-link:hover::after {
    width: 100%;
}

/* ========================================
   Submit Button - ELITE Action
======================================== */
.btn-register {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 40px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-register::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(30px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-register:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.4),
        0 0 80px rgba(139, 92, 246, 0.3);
    background-position: 100% 100%;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover::after {
    opacity: 0.5;
}

.btn-register:active {
    transform: translateY(-2px) scale(1);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-content,
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Bonus Info - Elite Premium Badge
======================================== */
.bonus-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    color: #4ade80;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.bonus-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.1), transparent);
    animation: bonusShine 3s linear infinite;
}

@keyframes bonusShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.bonus-info i {
    font-size: 1.5rem;
    animation: giftBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.5));
}

@keyframes giftBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    25% {
        transform: translateY(-5px) rotate(-5deg);
    }

    75% {
        transform: translateY(-3px) rotate(5deg);
    }
}

/* ========================================
   Divider
======================================== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.4);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.divider span {
    padding: 0 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   Login Link
======================================== */
.login-link {
    text-align: center;
    color: var(--elite-text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.login-link a {
    color: var(--elite-accent);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.login-link a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #8b5cf6);
    transition: width 0.3s ease;
}

.login-link a:hover {
    color: #a5b4fc;
}

.login-link a:hover::after {
    width: 100%;
}

/* ========================================
   Validation Error
======================================== */
.invalid-feedback {
    color: var(--elite-danger);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invalid-feedback::before {
    content: '⚠';
    font-size: 1rem;
}

/* ========================================
   Dark Mode Toggle
======================================== */
#darkModeToggle {
    color: var(--elite-text-secondary);
    font-size: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    color: var(--elite-accent);
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--elite-accent);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
    transform: rotate(20deg);
}

/* ========================================
   Mobile Logo
======================================== */
.brand-logo-mobile {
    display: block;
    text-decoration: none;
}

.brand-logo-mobile .gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   Light Mode Overrides
======================================== */
[data-bs-theme="light"] .auth-page {
    background: #f0f4ff;
}

[data-bs-theme="light"] .auth-page::before {
    background:
        radial-gradient(ellipse 80% 80% at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 70% 70% at 60% 80%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
}

[data-bs-theme="light"] .premium-form {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow:
        0 32px 64px rgba(102, 126, 234, 0.1),
        0 0 0 1px rgba(102, 126, 234, 0.1);
}

[data-bs-theme="light"] .auth-title {
    color: #1e293b;
}

[data-bs-theme="light"] .auth-title.gradient-text {
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-bs-theme="light"] .auth-subtitle {
    color: #64748b;
}

[data-bs-theme="light"] .premium-input {
    background: #ffffff;
    border-color: rgba(102, 126, 234, 0.2);
    color: #1e293b;
}

[data-bs-theme="light"] .premium-input:focus {
    background: white;
}

[data-bs-theme="light"] .premium-input:focus+label,
[data-bs-theme="light"] .premium-input:not(:placeholder-shown)+label {
    background: linear-gradient(180deg, transparent 45%, white 45%);
}

[data-bs-theme="light"] .premium-input::placeholder {
    color: #94a3b8;
}

[data-bs-theme="light"] .form-hint,
[data-bs-theme="light"] .optional {
    color: #64748b;
}

[data-bs-theme="light"] .password-requirements {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.15);
}

[data-bs-theme="light"] .requirement {
    color: #64748b;
}

[data-bs-theme="light"] .terms-checkbox {
    background: rgba(102, 126, 234, 0.05);
}

[data-bs-theme="light"] .terms-checkbox .form-check-label {
    color: #475569;
}

[data-bs-theme="light"] .divider {
    color: #94a3b8;
}

[data-bs-theme="light"] .login-link {
    color: #64748b;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet and below (Large devices) */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        min-height: 300px;
        display: flex;
        padding: 2rem;
    }

    .auth-form-container {
        padding: 2rem 1rem;
        align-items: center;
        justify-content: center;
    }

    .branding-title {
        font-size: 2.2rem;
    }

    .branding-text {
        font-size: 1rem;
    }

    .branding-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Larger tablets and small laptops */
@media (max-width: 991px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        min-height: 280px;
        padding: 2rem;
    }

    .branding-title {
        font-size: 2rem;
    }

    .brand-logo {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .branding-content {
        max-width: 100%;
    }

    .branding-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        min-height: auto;
    }

    .auth-branding {
        display: none;
    }

    .auth-form-container {
        min-height: 100vh;
        padding: 1.5rem 1rem;
        align-items: center;
        justify-content: center;
    }

    .auth-form-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .premium-form {
        padding: 2rem 1.5rem;
        border-radius: 24px;
        max-width: 100%;
    }

    .auth-title {
        font-size: 2rem;
    }

    .logo-badge {
        width: 90px;
        height: 90px;
        margin-bottom: 1.5rem;
    }

    .logo-badge i {
        font-size: 2.75rem;
    }

    .btn-register {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small devices (576px to 767px) */
@media (max-width: 576px) {
    html,
    body {
        font-size: 15px;
    }

    .auth-page {
        min-height: 100vh;
    }

    .auth-container {
        flex-direction: column;
        min-height: auto;
    }

    .auth-branding {
        display: none;
    }

    .auth-form-container {
        min-height: 100vh;
        padding: 1rem;
        align-items: center;
        justify-content: center;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .auth-form-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .premium-form {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
        margin: auto;
    }

    .logo-badge {
        width: 80px;
        height: 80px;
        border-radius: 18px;
        margin: 0 auto 1rem;
    }

    .logo-badge i {
        font-size: 2.25rem;
    }

    .auth-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-control,
    .premium-input {
        padding: 0.9rem 1rem 0.9rem 3rem;
        font-size: 1rem;
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }

    .input-icon {
        left: 1rem;
        font-size: 1.1rem;
    }

    .btn-register {
        padding: 0.95rem 1.25rem;
        font-size: 0.95rem;
        margin-top: 1rem;
        width: 100%;
    }

    .btn-register::before {
        height: 100%;
    }

    .divider {
        margin: 1.5rem 0;
    }

    .divider::before,
    .divider::after {
        border-bottom-width: 1px;
    }

    .divider span {
        padding: 0 0.75rem;
        font-size: 0.85rem;
    }

    .login-link {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .login-link a {
        font-weight: 700;
    }

    #darkModeToggle {
        padding: 0.6rem;
        font-size: 1.2rem;
        top: 1rem;
        right: 1rem;
    }

    .brand-logo-mobile {
        margin-bottom: 1.5rem;
    }

    .brand-logo-mobile .gradient-text {
        font-size: 1.5rem;
    }

    .invalid-feedback {
        font-size: 0.8rem;
        margin-top: 0.4rem;
        padding: 0.35rem 0.5rem;
    }

    .terms-checkbox {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .terms-checkbox .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }

    .terms-checkbox .form-check-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .password-requirements {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .requirement {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .bonus-info {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    .bonus-info i {
        font-size: 1.25rem;
    }
}

/* Extra small devices (under 480px) */
@media (max-width: 480px) {
    .auth-form-container {
        padding: 0.75rem;
    }

    .premium-form {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .logo-badge {
        width: 70px;
        height: 70px;
    }

    .logo-badge i {
        font-size: 1.8rem;
    }

    .form-control,
    .premium-input {
        padding: 0.8rem 0.75rem 0.8rem 2.75rem;
        font-size: 16px;
    }

    .input-icon {
        left: 0.75rem;
        font-size: 1rem;
    }

    .btn-register {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    #darkModeToggle {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

/* ========================================
   Form Main Content
======================================== */
.form-main-content {
    width: 100%;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* ========================================
   Custom Scrollbar
======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #8b5cf6);
}