/* Enhanced Auth Styles with Floating Effects and Gradients */
:root {
    --ax-bg: var(--site-color-auth-bg, #0b1220);
    --ax-card: var(--site-color-panel-bg, #0f172a);
    --ax-accent: #a3a3a3;
    --ax-accent-2: var(--site-color-button-success, #22c55e);
    --ax-muted: var(--site-color-text-muted, #94a3b8);
    --ax-surface: var(--site-color-body-bg, #121212);
    --ax-card-dark: var(--site-color-card-bg, #000000);
    --ax-border: var(--site-color-border, rgba(255,255,255,.08));
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
    color: inherit;
}

.bg-white, .bg-light, .bg-body, .bg-body-tertiary {
    color: #111827;
}

.card.bg-white, .card.bg-light, .card.bg-body, .card.bg-body-tertiary {
    color: #111827;
}

.table-light, .table-white {
    color: #111827;
}

.text-dark, .text-black {
    color: #f8fafc !important;
}

.ax-content, .ax-content p, .ax-content span, .ax-content div, .ax-content li, .ax-content small, .ax-content strong, .ax-content label, .ax-content td, .ax-content th, .ax-content h1, .ax-content h2, .ax-content h3, .ax-content h4, .ax-content h5, .ax-content h6 {
    color: inherit;
}

/* Enhanced Auth Background with Multiple Gradients */
.ax-auth {
    min-height: 100vh;
    background: 
        radial-gradient(1200px circle at 10% 10%, var(--site-color-auth-glow-1, rgba(99,102,241,0.35)), transparent 55%),
        radial-gradient(1000px circle at 90% 30%, var(--site-color-auth-glow-2, rgba(34,197,94,0.25)), transparent 55%),
        radial-gradient(800px circle at 50% 80%, rgba(244,114,182,0.2), transparent 55%),
        linear-gradient(180deg, var(--site-color-auth-bg, #0b1220) 0%, var(--site-color-auth-bg, #0b1220) 50%, var(--site-color-auth-bg-alt, #060a14) 100%);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Floating Orbs */
.ax-auth::before,
.ax-auth::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.ax-auth::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation-delay: 0s;
}

.ax-auth::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    animation-delay: 10s;
}

/* Additional floating elements */
.ax-auth .floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
    pointer-events: none;
}

.ax-auth .floating-orb-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation-delay: 3s;
}

.ax-auth .floating-orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, -10px) rotate(270deg);
    }
}

/* Enhanced Card Styles */
.ax-auth .ax-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ax-auth .ax-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Enhanced Form Controls */
.ax-auth .form-control,
.ax-auth .form-select {
    background: var(--site-color-auth-input-bg, rgba(2, 6, 23, 0.35));
    border: 1px solid var(--site-color-auth-input-border, rgba(148, 163, 184, 0.18));
    color: var(--site-color-auth-input-text, #e2e8f0);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ax-auth .form-control:focus,
.ax-auth .form-select:focus {
    border-color: var(--site-color-button-primary, #6366f1);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.18),
        0 0 20px rgba(99, 102, 241, 0.1);
    background: var(--site-color-auth-input-bg, rgba(2, 6, 23, 0.45));
    color: var(--site-color-auth-input-text, #e2e8f0);
    transform: translateY(-1px);
}

.ax-auth .form-label,
.ax-auth .form-check-label {
    color: #cbd5e1;
    font-weight: 500;
}

.ax-auth .ax-brand {
    letter-spacing: 0.2px;
}

.ax-auth .ax-subtitle {
    color: var(--ax-muted);
}

.ax-auth .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Auth Shell */
.ax-auth-shell {
    position: relative;
    padding: 32px 16px;
}

.ax-auth-shell:before,
.ax-auth-shell:after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
    animation: pulse 4s infinite ease-in-out;
}

.ax-auth-shell:before {
    width: 280px;
    height: 280px;
    top: 60px;
    left: -40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.3));
    animation-delay: 0s;
}

.ax-auth-shell:after {
    width: 320px;
    height: 320px;
    right: -50px;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 163, 74, 0.2));
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Enhanced Logo */
.ax-auth-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.ax-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.ax-auth-logo:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ax-auth-logo img {
    height: 44px;
    width: auto;
    display: block;
}

/* Enhanced Board */
.ax-auth-board {
    position: relative;
    overflow: visible;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    margin: 20px 0;
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ax-auth-board:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, transparent 45%, rgba(34, 197, 94, 0.12) 100%);
    pointer-events: none;
}

/* Enhanced Side Panel */
.ax-auth-side {
    position: relative;
    background: linear-gradient(160deg, 
        var(--site-color-auth-side-1, rgba(99, 102, 241, 0.9)) 0%, 
        var(--site-color-auth-side-2, rgba(79, 70, 229, 0.8)) 45%, 
        var(--site-color-auth-side-3, rgba(34, 197, 94, 0.5)) 100%);
    overflow: visible;
}

.ax-auth-side:before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 30%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
}

/* Floating particles in side panel */
.ax-auth-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
    background-size: 60px 60px, 40px 40px, 80px 80px;
    animation: drift 30s infinite linear;
    pointer-events: none;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-60px, -60px);
    }
}

.ax-auth-side-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ax-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ax-auth-kicker:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.ax-auth-display {
    font-size: clamp(2.2rem, 3.2vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 20px 0 16px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ax-auth-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
}

.ax-auth-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.ax-auth-shell {
    padding: 32px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ax-auth-stat {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ax-auth-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.ax-auth-stat strong {
    display: block;
    font-size: 1.15rem;
    color: #fff;
}

.ax-auth-stat span {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.ax-auth-steps {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.ax-auth-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.ax-auth-step:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.ax-auth-step-badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
}

.ax-auth-step.active .ax-auth-step-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #4338ca;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.ax-auth-step-text {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.86);
}

.ax-auth-card {
    position: relative;
    z-index: 1;
    padding: 36px;
}

.ax-auth-card-header {
    margin-bottom: 28px;
}

.ax-auth-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 8px 0 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ax-auth-card-topline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.ax-auth-form {
    display: grid;
    gap: 18px;
}

.ax-auth-field {
    display: grid;
    gap: 8px;
}

.ax-auth-input-wrap {
    position: relative;
}

.ax-auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    z-index: 1;
    transition: color 0.3s ease;
}

.ax-auth-field:focus-within .ax-auth-input-icon {
    color: var(--site-color-button-primary, #6366f1);
}

.ax-auth .form-control {
    padding-left: 48px;
}

.ax-auth-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ax-auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ax-auth-btn:hover::before {
    left: 100%;
}

.ax-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.ax-auth-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.ax-link {
    color: var(--site-color-button-primary, #6366f1);
    font-weight: 600;
    transition: all 0.3s ease;
}

.ax-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* Enhanced Loading State */
.ax-auth-loading {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ax-auth-loading.show {
    opacity: 1;
    visibility: visible;
}

.ax-loader-orbit {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 16px;
}

.ax-loader-core {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.ax-loader-orbit::before,
.ax-loader-orbit::after {
    content: '';
    position: absolute;
    border: 2px solid transparent;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.ax-loader-orbit::before {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
}

.ax-loader-orbit::after {
    width: 55px;
    height: 55px;
    top: 2.5px;
    left: 2.5px;
    animation-direction: reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ax-auth-loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Enhancements */
@media (max-width: 991px) {
    .ax-auth-card {
        padding: 28px 24px;
    }
    
    .ax-auth-card-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .ax-auth-shell {
        padding: 16px 0;
    }
    
    .ax-auth-card {
        padding: 24px 20px;
    }
    
    .ax-auth-card-title {
        font-size: 1.4rem;
    }
    
    .ax-auth-logo {
        padding: 14px 20px;
    }
    
    .ax-auth-logo img {
        height: 36px;
    }
}

.ax-auth-legal-footer {
    margin-top: auto;
    padding: 24px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ax-auth-legal-copy {
    margin-bottom: 8px;
}

.ax-auth-legal-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.ax-auth-legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ax-auth-legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}
