/* ============================================
   ID: AUTH-MODAL-STYLES-001 | Estilos de Modales de Autenticación
   Descripcion: Estilos para login y registro
   Fecha: 11 de diciembre de 2025
   ============================================ */

/* Modal Container */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

/* Backdrop */
.auth-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Content Box */
.auth-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* Close Button */
.auth-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-modal__close:hover {
    background: #f1f5f9;
    color: #334155;
}

/* Title */
.auth-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    text-align: center;
}

.auth-modal__subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 32px 0;
    text-align: center;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form__label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.auth-form__input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-form__input:focus {
    outline: none;
    border-color: var(--color-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form__input::placeholder {
    color: #94a3b8;
}

/* Error Message */
.auth-form__error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.5;
}

/* Submit Button */
.auth-form__submit {
    padding: 14px 24px;
    background: var(--color-primary, #3b82f6);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 8px;
}

.auth-form__submit:hover:not(:disabled) {
    background: var(--color-primary-dark, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-form__submit:active:not(:disabled) {
    transform: translateY(0);
}

.auth-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer Links */
.auth-form__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.auth-form__link {
    font-size: 14px;
    color: var(--color-primary, #3b82f6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-form__link:hover {
    color: var(--color-primary-dark, #2563eb);
    text-decoration: underline;
}

/* Divider */
.auth-form__divider {
    text-align: center;
    margin: 20px 0 16px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    position: relative;
}

.auth-form__divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e8f0;
    z-index: 0;
}

.auth-form__divider {
    position: relative;
    z-index: 1;
    background: white;
    padding: 0 8px;
}

/* OAuth Buttons */
.auth-oauth-btn {
    width: 100%;
    padding: 11px 20px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #ffffff;
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.15s ease;
    margin-top: 16px;
    height: 44px;
    box-sizing: border-box;
}

.auth-oauth-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    border-color: #dadce0;
}

.auth-oauth-btn:active {
    background: #f1f3f4;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.30);
}

.auth-oauth-btn:focus {
    outline: none;
    box-shadow: 0 1px 3px 1px rgba(60, 64, 67, 0.15), 0 0 0 2px rgba(66, 133, 244, 0.3);
}

.auth-oauth-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Header User Name */
.header__user-name {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    margin-right: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-modal__content {
        padding: 32px 24px;
        width: 95%;
        border-radius: 12px;
    }
    
    .auth-modal__title {
        font-size: 24px;
    }
    
    .auth-modal__subtitle {
        font-size: 14px;
    }
    
    .auth-form {
        gap: 16px;
    }
}
