/* Estilos para páginas de autenticación */

:root {
    --verde-muy-oscuro: #062109;
    --verde-medio: #3F8C28;
    --verde-claro: #69B34C;
    --white: #ffffff;
    --pale-green: #f0f9ff;
}

.auth-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: #f7fafc;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    border: 1px solid #e2e8f0;
}

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

.auth-header {
    background: var(--verde-medio);
    color: white !important;
    padding: 2rem;
    text-align: center;
}

.auth-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white !important;
}

.auth-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: white !important;
}

.auth-header p {
    opacity: 0.9;
    font-size: 0.95rem;
    color: white !important;
}

.auth-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--verde-medio);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--verde-claro);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(105, 179, 76, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #2c5282;
    border-color: #2c5282;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: #2c5282;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--verde-medio);
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    background: var(--verde-claro);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-auth:hover {
    background: #2c5282;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.3);
}

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

.auth-footer {
    background-color: #f7fafc;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    color: #4a5568;
    margin: 0;
}

.auth-footer a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.auth-footer a:hover {
    color: var(--verde-medio);
    text-decoration: underline;
}

/* Mensajes de error y éxito */
.error-message, .success-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.error-message {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.success-message {
    background-color: #c6f6d5;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.error-message i, .success-message i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 0 10px;
    }
    
    .auth-header {
        padding: 1.5rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .auth-footer {
        padding: 1rem 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}/* Es
tilos para select */
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

/* Estilos para texto pequeño */
.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

/* Mejoras para checkboxes múltiples */
.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.form-options .checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Estilos para enlaces en checkboxes */
.checkbox-label a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Indicador de campo requerido */
.form-group label::after {
    content: " *";
    color: #e53e3e;
    font-weight: bold;
}

.form-group label[for="newsletter"]::after,
.checkbox-label:last-child label::after {
    content: "";
}

/* Mejoras responsive para formulario extendido */
@media (max-width: 480px) {
    .form-group select {
        padding: 0.65rem 0.85rem;
    }
    
    .form-options {
        gap: 0.5rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
}