/* Ultra-Premium Stunning Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899;
    --accent: #f59e0b;
    --dark: #0f172a;
    --slate: #1e293b;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background: #f8fafc;
    color: var(--slate);
    margin: 0;
    overflow-x: hidden;
}

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Ultra-Premium Glass Card */
.glass-card {
    background: var(--glass) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 32px !important;
    box-shadow: var(--shadow-xl) !important;
    padding: 50px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* Auth Specifics */
.auth-logo {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Form Styling */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    display: block;
    transition: all 0.3s ease;
}

.form-control {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    height: 60px !important;
    padding: 0 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--slate) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-sm) !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), var(--shadow-md) !important;
    background: #fff !important;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}

/* Input Icons for Auth */
.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper .form-control {
    padding-left: 54px !important;
}

.auth-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.form-control:focus+i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Premium Buttons */
.btn-premium {
    background: var(--gradient-brand) !important;
    color: white !important;
    border: none !important;
    border-radius: 18px !important;
    height: 60px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5) !important;
    text-decoration: none !important;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -8px rgba(99, 102, 241, 0.6) !important;
}

.btn-premium:active {
    transform: translateY(-1px);
}

/* Wizard Steps for Registration */
.wizard>.steps ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    position: relative;
}

.wizard>.steps ul::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.wizard>.steps ul li {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.wizard>.steps ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    background: transparent !important;
}

.wizard>.steps ul li .number {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
    transition: all 0.4s ease;
}

.wizard>.steps ul li.current .number {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    transform: scale(1.15);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.wizard>.steps ul li.current a {
    color: var(--slate);
    font-weight: 700;
}

.wizard>.steps ul li.done .number {
    border-color: var(--primary);
    color: var(--primary);
}

.wizard>.content {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.wizard>.content .body {
    padding: 0 !important;
}

.wizard>.actions ul {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    list-style: none;
    margin-top: 30px;
}

.wizard>.actions a {
    padding: 14px 35px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.wizard>.actions a[href="#previous"] {
    background: #fff;
    color: var(--slate);
    border: 1.5px solid #e2e8f0;
}

.wizard>.actions a[href="#next"],
.wizard>.actions a[href="#finish"] {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.4);
}

/* Custom Checkbox */
.checkbox-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.checkbox-premium input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.checkbox-premium input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-premium input:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Layout Widths */
.auth-login-width {
    max-width: 480px !important;
    width: 100%;
}

.auth-register-width {
    max-width: 1000px !important;
    width: 100%;
}

@media (max-width: 1100px) {
    .auth-register-width {
        max-width: 90% !important;
    }
}

/* Form Spacing Improvements */
.form-group {
    margin-bottom: 24px;
}

.glass-card {
    background: var(--glass) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 32px !important;
    box-shadow: var(--shadow-xl) !important;
    padding: 40px !important;
    height: auto !important;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 25px 20px !important;
        border-radius: 20px !important;
    }
}

/* Input & Button Refinements */
.form-control {
    height: 56px !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.btn-premium {
    height: 56px !important;
    border-radius: 14px !important;
    margin-top: 10px;
}

/* Hover & Focus Effects */
.form-control:hover {
    border-color: var(--primary-light) !important;
}

.auth-input-wrapper i {
    transition: color 0.3s ease, transform 0.3s ease;
}

.form-control:focus+i {
    color: var(--primary) !important;
    transform: translateY(-50%) scale(1.1);
}

/* Registration Specific Scrolling & Spacing */
.wizard>.content {
    min-height: auto !important;
}

.wizard>.steps {
    margin-bottom: 30px !important;
}

fieldset {
    padding: 20px 0 !important;
    margin: 0 !important;
    border: none !important;
}

legend {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--slate) !important;
    margin-bottom: 25px !important;
    border: none !important;
    width: 100%;
}

/* Fix overlapping and text spacing */
.help-block {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

label.error {
    margin-bottom: 0 !important;
}

/* Demo Button Pills */
.btn-demo-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-demo-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-demo-pill.secondary {
    background: transparent;
    border-style: dashed;
    color: #94a3b8;
}

.btn-demo-pill.secondary:hover {
    color: #fff;
    border-style: solid;
    border-color: var(--primary);
}

/* Validation Errors */
label.error {
    color: #ef4444 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: block !important;
}

input.error,
select.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}