:root {
    --karma-bg: #104B84; /* Brand Blue */
    --karma-bg-gradient: linear-gradient(135deg, #104B84 0%, #062342 100%);
    --karma-text: #ffffff;
    --karma-input-bg: #ffffff;
    --karma-input-text: #333333;
    --karma-btn-primary: #ffffff; /* White button for contrast on blue */
    --karma-btn-hover: #f1f5f9;
}

body {
    background: var(--karma-bg-gradient) !important;
    color: var(--karma-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; /* Split layout usually fixed */
}

.split-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Pane - Login Form */
.login-pane {
    width: 40%;
    min-width: 450px;
    background: transparent; /* Let body gradient show through or set specifics */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

/* Subtle lighting effect */
.login-pane::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.login-pane h2 {
    font-size: 2.75rem;
    font-weight: 800; /* Extra Bold */
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.03em;
}

.login-pane .subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.logo-container {
    margin-bottom: 3rem;
}

/* Form Styles */
.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group-premium {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #64748B;
    transition: color 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.form-control {
    background-color: white !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    padding: 14px 16px 14px 48px !important; /* Space for icon */
    font-size: 1rem;
    color: #1E293B;
    height: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-control:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2) !important;
    background-color: #fff !important;
    transform: translateY(-1px);
}

.form-control:focus + .input-icon {
    color: var(--karma-bg);
}

/* Toggle Password */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--karma-bg);
}

/* Buttons */
.btn-karma-primary {
    background-color: var(--karma-btn-primary) !important;
    border: none !important;
    color: var(--karma-bg) !important;
    font-weight: 700 !important;
    padding: 16px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.btn-karma-primary:hover {
    background-color: var(--karma-btn-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.btn-karma-secondary {
    background-color: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-karma-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
    color: white !important;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-top: 24px;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: white;
    text-decoration: underline;
}

/* Right Pane - Promo Image */
.promo-pane {
    width: 60%;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

/* Navbar override for Auth */
.navbar {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; /* Start hidden */
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
        height: auto;
    }
    .login-pane {
        width: 100%;
        min-width: unset;
        padding: 40px 24px;
        min-height: 100vh;
    }
    .promo-pane {
        display: none;
    }
}

/* Registration Wizard - Glassmorphism & Multi-step */
.wizard-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wizard-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    color: white;
}

.wizard-header {
    text-align: center;
    margin-bottom: 30px;
}

.wizard-header h2 {
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 2rem;
    color: white;
}

.wizard-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* Progress Bar */
.wizard-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
    z-index: 1;
}

.step-indicator {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: white;
}

.step-indicator.active {
    background: #fff;
    color: var(--karma-bg);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.step-indicator.completed {
    background: #008000; /* Bright Green */
    color: white;
}

/* Steps */
.wizard-step {
    display: none;
    animation: slideUp 0.4s ease forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements Override for Wizard */
.wizard-card .form-label {
    color: rgba(255, 255, 255, 0.9);
}

.wizard-card .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 12px 16px !important; /* Reset padding for non-icon inputs */
}

/* Re-apply nice focus */
.wizard-card .form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

.wizard-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-nav-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-prev {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-next {
    background: white;
    color: var(--karma-bg);
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-submit {
    background: #008000;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #006600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
