/* static/css/auth.css - Estilos del formulario de inicio de sesión */
body {
    background: linear-gradient(135deg, #ffffff 0%, #3d0d1b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden; 
    margin: 0;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glass-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 900px;
    max-width: 95%;
    position: relative; 
    z-index: 1;
}

.left-panel {
    background: linear-gradient(135deg, rgba(123, 27, 55, 0.95) 0%, rgba(61, 13, 27, 0.95) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.right-panel {
    padding: 4rem 3rem;
    background: transparent;
}

.system-title {
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control.glass-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control.glass-input:focus {
    background: #ffffff;
    border-color: #7b1b37;
    box-shadow: 0 0 0 0.25rem rgba(123, 27, 55, 0.25);
    color: #000000;
}

.input-group-text.glass-addon {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
    color: #7b1b37;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.btn.glass-addon-end {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
    color: #6c757d;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.btn.glass-addon-end:hover {
    color: #7b1b37;
    background: #f8f9fa;
}

.btn-institucional {
    background: #7b1b37;
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 27, 55, 0.3);
}

.btn-institucional:hover {
    background: #922243;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 27, 55, 0.4);
}

.text-glass-link {
    color: #7b1b37;
    text-decoration: none;
    transition: all 0.2s ease;
}

.text-glass-link:hover {
    color: #922243;
    text-decoration: underline;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #7b1b37 0%, #20050c 100%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
    animation: pulseSoft 2s infinite ease-in-out;
}

@keyframes floatUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulseSoft {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
