/**
 * Login Page Styles
 * Extends global.css for the authentication layout
 */

/* 1. Base Layout & Background */
html,
body.auth-body {
    height: 100%;
    overflow: hidden;
    /* Prevent vertical scrollbar */
    margin: 0;
}

body.auth-body {
    /* Workspace Sidebar Blue (#0B1120) */
    background-color: #0B1120;

    /* Subtle Gradients: Top-Left and Top-Right/Bottom-Right */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.10) 0%, transparent 40%);

    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, sans-serif;
}

/* 2. Main Content Container */
/* 2. Main Content Container */
.auth-body .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 900px;
    /* Widened for 2-column layout */
    flex: none;
    z-index: 10;
}

/* 3. Login Card Styling - Dark Glass Theme */
.auth-card {
    /* Glass Effect on Dark Background */
    background: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle white border */
    border-radius: 24px;
    /* More rounded for modern feel */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for depth */
    position: relative;
    overflow: hidden;
}

.auth-card .card-body {
    padding: 0;
    /* padding handled by grid structure */
}

/* Left Brand Column */
.auth-brand-col {
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-form-col {
    padding: 3rem;
}

/* 4. Typography & Elements */
.auth-card h1 {
    font-weight: 700;
    color: #ffffff;
    /* White text */
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-card .text-secondary {
    color: #94a3b8 !important;
    /* Slate 400 - Readable on dark */
}

/* Input Fields - Dark Theme */
.auth-card .form-control {
    background-color: rgba(15, 23, 42, 0.6);
    /* Slate 900 semi-transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    /* Light text */
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s;
}

.auth-card .form-control:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

/* Floating Labels Fix for Dark Theme */
.form-floating>label {
    color: #94a3b8;
    padding-left: 1rem;
    background-color: transparent !important;
    /* Ensure no badge-look */
}

.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after {
    background-color: transparent !important;
    /* Fix Bootstrap 5.2+ label background */
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: #60a5fa;
    /* Blue accent when active */
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating>.form-control:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
}

/* Primary Button */
.auth-card .btn-primary {
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

/* Footer & Copyright */
.auth-card .card-footer {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    padding: 1rem;
}

/* Checkbox */
.form-check-input {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* ───────── Registration Stepper ───────── */
.reg-stepper {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.reg-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-step-indicator .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    color: #475569;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.reg-step-indicator.active .step-circle {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
}

.reg-step-indicator.completed .step-circle {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.3);
}

.reg-step-indicator .step-label {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.reg-step-indicator.active .step-label {
    color: #e2e8f0;
}

.reg-step-indicator.completed .step-label {
    color: #94a3b8;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0.75rem;
    border-radius: 1px;
    position: relative;
    min-width: 40px;
}

.step-connector::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-connector.filled::after {
    width: 100%;
}

/* ───────── Plan Badge (Pill) ───────── */
.reg-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.18);
    letter-spacing: 0.01em;
}