.auth-page {
    height: 95vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: flex;
    width: 100%;
    background: #ffffff;
    height: 100%;
}

.auth-image {
    flex: 1;
    width: 40%;
    position: relative;
    background: #ff6b00; /* Fondo naranja de respaldo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: hue-rotate(330deg) saturate(1.5) brightness(0.6); /* Filtro naranja */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.8) 0%, rgba(255, 133, 51, 0.8) 100%); /* Degradado naranja */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px;
}

.image-overlay h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.image-overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 400px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.form-content {
    width: 100%;
    max-width: 1000px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.form-signup {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.form-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-section {
    margin: 5px;
    padding: 20px;
    width: 48%;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ff6b00;
}

.form-login .form-section {
    width: 70%;
}

.sectionsignup-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.radio-option:hover {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #ff6b00;
    background: #ff6b00;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-content {
    flex: 1;
}

.radio-content strong {
    display: block;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

.radio-content small {
    color: #666;
    font-size: 0.85rem;
}

.signup-actions {
    margin: 5px;
    padding: 20px;
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
}

.form-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.form-footer p {
    color: #666;
    margin: 0;
}

.form-footer a {
    color: #ff6b00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #e55a00;
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    margin-top: -10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

@media (max-width: 1050px) {
    .form-section {
        width: 100%;
    }
    .signup-actions {
        width: 100%;
    }
}

/* Responsive Design for Auth Pages */
@media (max-width: 860px) {
    .auth-container {
        flex-direction: column;
        margin: 10px;
        border-radius: 15px;
        min-height: auto; /* Permite que el contenedor se expanda con el contenido */
    }
    
    .auth-image {
        display: none;
    }

    .auth-form {
        width: 100%;
        flex: none;
    }
    
    .image-overlay h2 {
        font-size: 1.8rem;
    }
    
    .image-overlay p {
        font-size: 1rem;
    }
    
    .auth-form {
        padding: 30px 20px;
        flex-basis: 100%; /* Asegura que el formulario ocupe todo el ancho */
        min-height: 100vh; /* Asegura que el contenedor del formulario ocupe al menos el alto de la ventana */
        overflow-y: auto; /* Permite el scroll si el contenido es más largo que la pantalla */
    }
    .form-signup {
        flex-direction: column;
        width: 100%;
    }

    .form-signup .form-section {
        width: 100%;
        margin: 10px 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .radio-option {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 10px;
    }
    
    .auth-form {
        padding: 20px 15px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
}


/* Additional Login Styles */
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

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

.checkbox-custom {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background: #ffffff;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #ff6b00;
    background: #ff6b00;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    color: #666;
    font-size: 0.9rem;
}

.form-links {
    text-align: center;
    margin: 20px 0;
}

.forgot-password {
    color: #ff6b00;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #e55a00;
    text-decoration: underline;
}


.form-control::placeholder {
    color: #999;
    font-style: italic;
}

.form-control:focus::placeholder {
    color: #ccc;
}