/* Auth Pages Styles */

.auth-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

.auth-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

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

/* Left Side - Image */
.auth-image-side {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(30, 58, 138, 0.95)), 
                url('https://images.unsplash.com/photo-1507692049790-de58290a4334?ixlib=rb-4.0.3') center/cover;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-overlay {
    position: relative;
    z-index: 2;
}

.auth-stats,
.auth-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item,
.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover,
.step-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-item span,
.step-item span {
    font-weight: 500;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Right Side - Form */
.auth-form-side {
    background: white;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.auth-title {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Form Controls */
.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: var(--primary-color);
}

/* Input Group */
.input-group .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.input-group .form-control-lg {
    border-radius: 12px 0 0 12px;
}

.input-group .btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: var(--primary-color);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar-fill {
    height: 100%;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-bar-fill.weak {
    width: 33%;
    background: #ef4444;
}

.strength-bar-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-bar-fill.strong {
    width: 100%;
    background: #10b981;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider-text {
    position: relative;
    display: inline-block;
    background: white;
    padding: 0 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Buttons */
.btn-custom {
    background: var(--secondary-color);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-custom:hover {
    background: #d97706;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

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

.btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Form Check */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Links */
a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Steps Animation */
.auth-step {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading State */
.btn-custom.loading {
    position: relative;
    color: transparent;
}

.btn-custom.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Success Icon Animation */
.bi-check-circle-fill {
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Form Text Helper */
.form-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.form-text i {
    color: var(--primary-color);
}

/* Invalid Feedback */
.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-section {
        padding: 3rem 0;
    }

    .auth-card {
        border-radius: 15px;
    }

    .auth-form-side {
        min-height: auto;
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 3rem 0;
    }

    .auth-card {
        border-radius: 12px;
        margin: 1rem;
    }

    .auth-form-side {
        padding: 1.5rem 1rem !important;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .btn-custom,
    .btn-outline-secondary {
        padding: 0.625rem 1rem;
    }
}
