/* Authentication Styles */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.auth-card {
    background: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.auth-header p {
    color: var(--gray-color);
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: var(--gray-color);
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-with-icon .password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-bottom: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-color);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    padding: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-social:hover {
    border-color: var(--gray-color);
    transform: translateY(-2px);
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: var(--gray-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.auth-info h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.auth-sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.sidebar-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

.feature-item h4 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}


/* Error States */

.input-with-icon input.error {
    border-color: var(--danger-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}


/* Success States */

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Loading State */

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* Responsive Design */

@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    .auth-sidebar {
        display: none;
    }
    .auth-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .social-login {
        grid-template-columns: 1fr;
    }
    .auth-card {
        padding: 1.5rem;
    }
}


/* Forgot Password Specific Styles */


/* Form Help Text */

.form-help {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
    margin-bottom: 0;
}


/* Success Message */

.success-message {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.success-message.show {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.success-icon {
    font-size: 2.5rem;
    color: #10b981;
    flex-shrink: 0;
}

.success-content h4 {
    color: #065f46;
    margin-bottom: 0.5rem;
}

.success-content p {
    color: #047857;
    margin-bottom: 1.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* Info Box */

.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
    gap: 1rem;
}

.contact-link i {
    font-size: 1.1rem;
    width: 20px;
}


/* Security Tip */

.security-tip {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.security-tip i {
    color: #d97706;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.security-tip p {
    margin: 0;
    color: #92400e;
    font-size: 0.95rem;
}


/* Alternative Actions */

.alternative-actions {
    margin-top: 1rem;
}


/* Sidebar Specific Styles */

.sidebar-header {
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: white;
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}


/* Security Features */

.security-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.security-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.security-feature .feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.security-feature .feature-content h4 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.security-feature .feature-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}


/* Progress Container */

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.progress-value {
    color: #10b981;
    font-weight: 700;
    font-size: 1.25rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    animation: progressAnimation 2s ease-out;
}

.progress-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}


/* Stats Box */

.stats-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stats-box .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stats-box .stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stats-box .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stats-box .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    display: block;
}


/* Back to Top Button */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}


/* Password Reset Steps */

.reset-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.reset-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.reset-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e5e7eb;
    color: var(--gray-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 0.5rem;
    transition: var(--transition);
}

.reset-step.active .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.reset-step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: var(--gray-color);
    font-weight: 500;
}

.reset-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}


/* Countdown Timer */

.countdown-timer {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.countdown-timer h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.timer-note {
    color: var(--gray-color);
    font-size: 0.85rem;
    margin: 0;
}


/* Responsive Adjustments */

@media (max-width: 992px) {
    .stats-box {
        grid-template-columns: 1fr;
    }
    .security-features {
        gap: 1rem;
    }
    .success-message.show {
        flex-direction: column;
        text-align: center;
    }
    .success-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .reset-steps {
        flex-direction: column;
        gap: 1rem;
    }
    .reset-steps::before {
        display: none;
    }
    .reset-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    .step-number {
        margin: 0;
    }
}


/* Registration Page Specific Styles */


/* Form Row Layout */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Email Status Indicator */

.email-status {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 20px;
}

.email-status.valid {
    color: #10b981;
}

.email-status.invalid {
    color: #ef4444;
}

.email-status.loading {
    color: #6366f1;
}


/* Password Strength Meter */

.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.strength-meter {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 80px;
}


/* Password Requirements */

.password-requirements {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
}

.password-requirements p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.password-requirements li i {
    width: 16px;
}


/* Match Indicator */

.match-indicator {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.match-indicator i {
    font-size: 1rem;
}


/* User Type Selector */

.user-type-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.user-type-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.user-type-option:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.user-type-option.selected {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

.option-icon {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--dark-color);
}

.option-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.option-check {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.user-type-option.selected .option-check {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}


/* CAPTCHA Styles */

.captcha-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
}

.captcha-box {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--dark-color);
    user-select: none;
}

#captchaText {
    flex: 1;
    text-align: center;
}

.btn-refresh {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-refresh:hover {
    color: var(--primary-color);
    background: #f3f4f6;
}

#captchaInput {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

#captchaInput:focus {
    outline: none;
    border-color: var(--primary-color);
}


/* Benefits Grid */

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}


/* Stats Counter */

.stats-counter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.stats-counter .stat {
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.stats-counter .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stats-counter .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    display: block;
}


/* Testimonial */

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.testimonial-content p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h5 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}


/* Progress Bar Animation */

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Checkbox Groups */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}


/* Password Strength Colors */

.password-strength-0 .strength-fill {
    background: #ef4444;
    width: 20%;
}

.password-strength-1 .strength-fill {
    background: #f97316;
    width: 40%;
}

.password-strength-2 .strength-fill {
    background: #eab308;
    width: 60%;
}

.password-strength-3 .strength-fill {
    background: #84cc16;
    width: 80%;
}

.password-strength-4 .strength-fill {
    background: #10b981;
    width: 100%;
}

.password-strength-0 .strength-text {
    color: #ef4444;
}

.password-strength-1 .strength-text {
    color: #f97316;
}

.password-strength-2 .strength-text {
    color: #eab308;
}

.password-strength-3 .strength-text {
    color: #84cc16;
}

.password-strength-4 .strength-text {
    color: #10b981;
}


/* Responsive Adjustments */

@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
    }
    .captcha-box,
    #captchaInput {
        width: 100%;
    }
    .stats-counter {
        grid-template-columns: 1fr;
    }
    .user-type-option {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .option-content {
        text-align: center;
    }
}