/*
 * Archivo CSS para el formulario de inicio de sesión.
 * Debe guardarse en una carpeta 'css' dentro de la raíz de tu proyecto.
 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #1a1a2e;
    color: #f0f0f0;
    margin: 0;
    padding: 2rem;
    background-image: linear-gradient(135deg, rgba(14, 14, 30, 0.9) 0%, rgba(42, 42, 74, 0.9) 50%, rgba(14, 14, 30, 0.9) 100%), url('https://i.postimg.cc/VkBS2MFp/img2-wallspic-com-angulo-modo-monocromo-fila-monocromo-el-arte-abstracto-2618x1636.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-corporativo {
    max-width: 250px;
    height: auto;
}

.login-container {
    background-color: #33334d;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 450px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #7B68EE;
    margin: 0;
    font-size: 2.5em;
    font-weight: 300;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 1.1rem;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #666688;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: #555577;
    color: #f0f0f0;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #7B68EE;
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.2);
    background: #666688;
}

.btn-login {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #7B68EE 0%, #6A5ACD 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, #6A5ACD 0%, #5A4ACD 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.btn-login:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-login i {
    font-size: 20px;
}

.btn-login span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.message.success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 15px;
    color: #f0f0f0;
}

.loading p {
    margin: 0;
    font-weight: 500;
}

/* Nueva sección de enlaces */
.links-section {
    margin-top: 30px;
    text-align: center;
}

.link-group {
    margin-bottom: 15px;
}

.link-group:last-child {
    margin-bottom: 0;
}

.links-section a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.links-section a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.links-section a i {
    font-size: 16px;
    opacity: 0.8;
}

.link-recuperar {
    color: #FFD700 !important;
}

.link-recuperar:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
}

.link-registro {
    color: #98FB98 !important;
}

.link-registro:hover {
    background: rgba(152, 251, 152, 0.1) !important;
    border-color: rgba(152, 251, 152, 0.3) !important;
}

.link-volver {
    color: #87CEEB !important;
}

.link-volver:hover {
    background: rgba(135, 206, 235, 0.1) !important;
    border-color: rgba(135, 206, 235, 0.3) !important;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .logo h1 {
        font-size: 2em;
    }
    
    .btn-login {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .links-section a {
        font-size: 13px;
        padding: 6px 10px;
    }
}