/* ===== IMPORTAR PALETA DE COLORES ===== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 560'%3e%3cpath fill='rgba(255,255,255,0.1)' d='M0,320L48,309.3C96,299,192,277,288,250.7C384,224,480,192,576,186.7C672,181,768,203,864,213.3C960,224,1056,224,1152,208C1248,192,1344,160,1392,144L1440,128L1440,560L1392,560C1344,560,1248,560,1152,560C1056,560,960,560,864,560C768,560,672,560,576,560C480,560,384,560,288,560C192,560,96,560,48,560L0,560Z'%3e%3c/path%3e%3c/svg%3e") no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

#seccionLogin {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.login-box {
    width: 90%;
    max-width: 500px;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.DivIco {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-box h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Form Styles */
#register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.formulario__grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.formulario__grupo-input {
    position: relative;
}

.formulario__input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface-color);
    color: var(--text-primary);
}

.formulario__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.formulario__input::placeholder {
    color: var(--text-muted);
}

.formulario__input-error {
    font-size: 0.875rem;
    color: var(--danger-color);
    display: none;
    margin-top: 0.25rem;
}

.formulario__grupo-incorrecto .formulario__input {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.formulario__grupo-correcto .formulario__input {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.formulario__input-error-activo {
    display: block;
}

/* Button Styles */
.formulario__grupo-btn-enviar {
    margin-top: 1rem;
}

#submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

#submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
}

#submit:active {
    transform: translateY(0);
}

#submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message Styles */
.formulario__mensaje {
    height: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.formulario__mensaje-activo {
    display: flex;
}

.formulario__mensaje p {
    margin: 0;
}

.formulario__mensaje-exito {
    font-size: 0.875rem;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.formulario__mensaje-exito-activo {
    display: flex;
}

.error {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--danger-color);
    margin-bottom: 1rem;
    margin-top: -1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    gap: 0.5rem;
}

.escondido {
    display: none;
}

/* Links */
.link-buttom {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
    margin-top: 1rem;
    display: block;
}

.link-buttom:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    left: -100000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    animation: fadeInUp 0.6s ease-out;
}

.formulario__grupo {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.formulario__grupo:nth-child(1) { animation-delay: 0.1s; }
.formulario__grupo:nth-child(2) { animation-delay: 0.2s; }
.formulario__grupo:nth-child(3) { animation-delay: 0.3s; }
.formulario__grupo:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .login-box h1 {
        font-size: 1.75rem;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
    }
    
    .login-box h1 {
        font-size: 1.5rem;
    }
    
    .info {
        font-size: 0.875rem;
    }
}

