/* ========================================
   Additional Utilities for Login Pages
   ======================================== */

/* Back to Login Button */
.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    transition: var(--transition);
}

.back-to-login:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    transform: translateX(-5px);
}

/* Help Section */
.help-section {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.help-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section ul {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.help-section li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.help-section li i {
    color: var(--success-color);
    margin-top: 0.25rem;
}

/* Form Text Helper */
.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.form-text i {
    margin-right: 0.25rem;
}

/* Success State */
.success-message {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.5s ease;
}

.success-message i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    display: block;
    animation: scaleIn 0.5s ease;
}

.success-message h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

/* Loading Spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

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

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

/* Timer Display */
.timer-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 1rem;
}

.timer-display i {
    color: var(--primary-color);
}

/* Resend Link */
.resend-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.resend-link.disabled {
    color: var(--gray-color);
    cursor: not-allowed;
    pointer-events: none;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--gray-light);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--danger-color);
}

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

.password-strength-bar.strong {
    width: 100%;
    background: var(--success-color);
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: var(--gray-color);
}

/* Requirements List */
.requirements-list {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.requirements-list h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.requirements-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: 0.25rem 0;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-list li i {
    font-size: 0.75rem;
}

.requirements-list li.valid {
    color: var(--success-color);
}

.requirements-list li.valid i {
    color: var(--success-color);
}

/* Social Login Buttons */
.social-login {
    margin-top: 1.5rem;
}

.social-login-btn {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    background: var(--white);
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.social-login-btn:hover {
    border-color: var(--gray-color);
    background: var(--light-color);
}

.social-login-btn i {
    font-size: 1.25rem;
}

.social-login-btn.google {
    color: #ea4335;
}

.social-login-btn.facebook {
    color: #1877f2;
}

.social-login-btn.microsoft {
    color: #00a4ef;
}

/* Terms and Privacy */
.terms-privacy {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-color);
    line-height: 1.5;
}

.terms-privacy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-privacy a:hover {
    text-decoration: underline;
}

/* Mobile Specific Utilities */
@media (max-width: 768px) {
    .help-section {
        padding: 1rem;
    }

    .success-message i {
        font-size: 3rem;
    }

    .success-message h3 {
        font-size: 1.25rem;
    }

    .back-to-login {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .back-to-login,
    .social-login,
    .divider,
    .terms-privacy {
        display: none;
    }
}
