/* Authentication Pages Styles */

/* Auth Body */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* Auth Navbar */
.auth-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Auth Section */
.auth-section {
    padding: 120px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

/* Auth Header */
.auth-header {
    margin-bottom: 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.auth-icon i {
    font-size: 2rem;
    color: white;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    margin-bottom: 0;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

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

.auth-input {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.auth-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    background: white;
    outline: none;
}

.auth-input.is-valid {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.auth-input.is-invalid {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 29px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0rem;
    border-radius: 6px;
    z-index: 10;
    transition: all 0.2s ease;
}
.password-toggle:focus {
    outline: none;
    box-shadow: none;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

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

.password-strength {
    margin-top: 0.5rem;
}

.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.password-requirements small {
    font-size: 0.75rem;
    color: #6c757d;
}

.progress {
    background-color: #e9ecef;
    height: 5px;
    border-radius: 3px;
}

.progress-bar {
    transition: width 0.3s ease, background-color 0.3s ease;
}

.requirement {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.requirement i {
    width: 12px;
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.requirement.met i {
    color: var(--success-color);
}

.requirement.met {
    color: var(--success-color);
}

/* Form Check */
.form-check {
    margin-bottom: 0;
}

.form-check-input {
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
}

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

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
    margin-left: 0.5rem;
}

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

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

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

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

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Auth Footer */
.auth-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Toast Notifications */
.toast {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.toast-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gray-200);
    border-radius: 12px 12px 0 0;
}

.toast-body {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 12px 12px;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--primary-color);
}

/* Validation Feedback */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--danger-color);
    font-weight: 500;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 500;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.is-valid ~ .valid-feedback {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 100px 0 40px;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }

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

    .auth-subtitle {
        font-size: 1rem;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }

    .social-login {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
    }

    .auth-icon i {
        font-size: 1.5rem;
    }

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

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus Styles for Accessibility */
.auth-input:focus,
.form-check-input:focus,
.auth-submit-btn:focus,
.social-btn:focus,
.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .auth-card {
        background: white;
        border: 2px solid var(--gray-900);
    }

    .auth-input {
        background: white;
        border-color: var(--gray-900);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .auth-input,
    .auth-submit-btn,
    .social-btn,
    .password-toggle {
        transition: none;
        animation: none;
    }
}