/* === Auth Pages - Modern Theme === */

/* Hide navbar & footer on auth pages */
body.auth-body .main-navbar,
body.auth-body nav.navbar,
body.auth-body header:not(.topbar),
body.auth-body footer,
body.auth-body .mobile-bottom-nav {
    display: none !important;
}

body.auth-body {
    padding-bottom: 1.5rem;
}

body.auth-body main {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
:root {
    --auth-navy: #1a237e;
    --auth-purple: #7c3aed;
    --auth-teal: #0d9488;
    --auth-gradient: linear-gradient(135deg, #1a237e 0%, #7c3aed 100%);
    --auth-gradient-soft: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
}

.auth-body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    background: var(--auth-gradient-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 1.5rem;
    position: relative;
    overflow-x: hidden;
}

.auth-bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--auth-purple);
    top: -10%;
    left: -10%;
    animation: authFloat 15s ease-in-out infinite;
}

.auth-bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--auth-teal);
    bottom: -10%;
    right: -10%;
    animation: authFloat 20s ease-in-out infinite reverse;
}

@keyframes authFloat {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(40px, 40px);
    }
}

/* === Hero Section === */
.auth-hero {
    width: 100%;
    background: var(--auth-gradient);
    padding: 4.5rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.auth-hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    animation: authPulse 3s ease-in-out infinite;
}

.auth-hero h1 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-hero p {
    opacity: 0.85;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .auth-hero {
        padding: 2rem 1.25rem;
    }
    .auth-hero h1 {
        font-size: 1.5rem;
    }
    .auth-hero-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* === Form Card (centered, overlapping hero) === */
.auth-form-card {
    width: 100%;
    margin: 1rem 0 2rem;
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 1.75rem 2rem 2rem;
}

.auth-container {
    margin: auto;
    margin-bottom: 86px;
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes authPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
}

/* === Form Controls === */
.auth-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input-group .form-control {
    height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding-left: 1rem;
    padding-right: 2.75rem;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: all 0.25s;
}

.auth-input-group .form-control:focus {
    border-color: var(--auth-purple);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
    background: #fff;
}

.auth-input-group .form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.auth-input-group .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.25s;
    pointer-events: none;
}

.auth-input-group .form-control:focus ~ .input-icon {
    color: var(--auth-purple);
}

.auth-input-group .form-floating label {
    padding-left: 1rem;
    color: #94a3b8;
}

/* === Buttons === */
.auth-btn-primary {
    height: 52px;
    border-radius: 12px;
    background: var(--auth-gradient);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-outline {
    height: 48px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-outline:hover {
    border-color: var(--auth-purple);
    color: var(--auth-purple);
    background: #faf5ff;
    transform: translateY(-1px);
}

/* === Google Button === */
.auth-btn-google {
    height: 52px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
}

.auth-btn-google:hover {
    border-color: #4285f4;
    background: #f8faff;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.auth-btn-google i {
    font-size: 1.2rem;
    color: #4285f4;
}

/* === Divider === */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* === Links === */
.auth-link {
    color: var(--auth-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--auth-navy);
    text-decoration: underline;
}

/* === Alert === */
.auth-alert {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Steps (Register) === */
.auth-step {
    display: none;
    animation: authFadeIn 0.35s ease;
}

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

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

.auth-step-indicator {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.auth-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s;
}

.auth-step-dot.active {
    background: var(--auth-purple);
    transform: scale(1.3);
}

.auth-step-dot.completed {
    background: var(--auth-teal);
}

/* === Plan Cards (Register) === */
.auth-plan-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-plan-item {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-plan-item:hover {
    border-color: var(--auth-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.1);
}

.auth-plan-item.selected {
    border-color: var(--auth-purple);
    background: #faf5ff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.auth-plan-item .plan-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.7rem;
    color: white;
    flex-shrink: 0;
}

.auth-plan-item.selected .plan-check {
    background: var(--auth-purple);
    border-color: var(--auth-purple);
}

/* === Glass Card (forgot/reset) === */
.auth-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
}

/* === Responsive === */
@media (max-width: 575px) {
    .auth-glass {
        padding: 1.75rem;
    }
    .auth-form-card {
        padding: 1.25rem;
    }
}

/* === Utility helpers === */
.bg-red-50 {
    background-color: #fef2f2;
}
.bg-green-50 {
    background-color: #f0fdf4;
}
.text-purple {
    color: var(--auth-purple);
}
.text-teal {
    color: var(--auth-teal);
}
.text-navy {
    color: var(--auth-navy);
}

/* === Back to home link === */
.auth-back-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-back-link:hover {
    color: var(--auth-purple);
}

/* === Password Strength Bar === */
.auth-password-strength {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    margin-top: 0.5rem;
    overflow: hidden;
}

.auth-password-strength .bar {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s;
    width: 0;
}
