/* ==========================================
   AUTH PAGES (LOGIN & REGISTER)
   ========================================== */

/* Split Screen Layout */
.auth-container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* Visual/Branding Side */
.auth-visual {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.visual-overlay {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 500px;
    text-align: center;
}

.visual-overlay h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.visual-overlay>p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.features-list li {
    padding: 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list li:last-child {
    border-bottom: none;
}

/* Form Side */
.auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #f8f9fa;
}

.form-container {
    width: 100%;
    max-width: 450px;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* Floating Labels */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1rem 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-floating input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
    outline: none;
}

.form-floating label {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-floating input:focus+label,
.form-floating input:not(:placeholder-shown)+label {
    top: 0.75rem;
    font-size: 0.75rem;
    transform: translateY(0);
    color: var(--primary-600);
}

/* Password Field */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-600);
}

/* Password Strength Indicator */
.password-strength {
    position: relative;
}

.strength-meter {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: all 0.3s ease;
}

.strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-bar.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    color: var(--gray-600);
}

/* Divider */
.divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e5e7eb;
}

.divider::before {
    right: 0;
}

.divider::after {
    left: 0;
}

/* Multi-Step Registration */
.registration-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.registration-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-600);
    color: #fff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.step.completed .step-number {
    background: var(--success-color);
    color: #fff;
}

.step span {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
}

.step.active span {
    color: var(--primary-600);
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-back,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back {
    background: #f3f4f6;
    color: var(--gray-700);
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-next,
.btn-submit {
    background: var(--primary-600);
    color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* Confirmation Card */
.confirmation-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.confirmation-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-card h4 {
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.review-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.review-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--gray-700);
}

.review-list li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-visual {
        min-height: 300px;
    }

    .visual-overlay h1 {
        font-size: 2.5rem;
    }

    .features-list {
        text-align: center;
        justify-content: center;
    }

    .features-list li {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .auth-form {
        padding: 2rem 1.5rem;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .registration-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .registration-steps::before {
        display: none;
    }

    .btn-group {
        flex-direction: column;
    }
}