/* Authentication Styles */

/* Enhanced Form Styles */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.btn-social {
    background: #4285f4;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-social:hover {
    background: #357ae8;
    transform: translateY(-2px);
}

.switch-form {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.switch-form:hover {
    color: #764ba2;
}

.terms-link, .privacy-link {
    color: #667eea;
    text-decoration: none;
}

.terms-link:hover, .privacy-link:hover {
    color: #764ba2;
}

.forgot-description {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.5;
}

/* Form Error States */
.input-group.error input {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.input-group.success input {
    border-color: #28a745;
    background-color: #d4edda;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #28a745;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Auth Modal Specific */
.auth-modal .modal-content {
    max-width: 500px;
}

.auth-modal h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Auth Forms */
@media (max-width: 768px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-modal .modal-content {
        margin: 5% auto;
    }
}

@media (max-width: 480px) {
    .auth-modal .modal-content {
        padding: 1.5rem;
        margin: 2% auto;
    }

    .btn-social {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
} 