/* Auth Pages Styles - Sin Tailwind CDN */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Contenedor del formulario */
.auth-container {
    max-width: 28rem;
    width: 100%;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

/* Título */
.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

/* Formulario */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Mensajes */
.messages {
    margin-bottom: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.message-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.message-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.message-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Campos de formulario */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: white;
}

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

.form-input:hover {
    border-color: #9ca3af;
}

/* Errores */
.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Texto de ayuda */
.form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Botón principal */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
}

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

/* Botón de login (azul) */
.btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

/* Enlaces */
.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-footer-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-link {
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.625rem 0.875rem;
    }
    
    .btn-submit {
        padding: 0.75rem 1.25rem;
    }
}

/* Estados de loading */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Links adicionales */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.auth-links a {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #3b82f6;
}

/* Honeypot field - hidden from users */
.honeypot-field {
    display: none;
}

/* reCAPTCHA disclaimer text */
.recaptcha-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #6b7280;
}

/* Registration Success Page Styles */
.success-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-title {
    font-size: 28px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.email-box {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    text-align: left;
}

.email-box h3 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 18px;
}

.email-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.email-box li {
    margin: 8px 0;
    color: #555;
}

.user-info {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: left;
}

.user-info strong {
    color: #007bff;
}

.success-container .btn-login {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.success-container .btn-login:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.countdown {
    font-size: 14px;
    color: #888;
    margin-top: 15px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: left;
}

.warning-box strong {
    color: #856404;
}

/* Utility classes for password reset pages */
.text-center {
    text-align: center;
}

.large-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.inline-flex-button {
    display: inline-flex;
    width: auto;
    padding: 1rem 3rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-1-5 {
    margin-top: 1.5rem;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
