/**
 * login.css - Estilos del modulo login
 * Escuela Victor Domingo Silva
 */

:root {
            --bg: #0B0E14;
            --card: rgba(255, 255, 255, 0.03);
            --accent: #00e5cc;
            --text: #E2E8F0;
            --border: rgba(255, 255, 255, 0.08);
        }
        
        html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--bg);
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
            /* Fondo con la imagen y un overlay oscuro para asegurar legibilidad */
            background-image: linear-gradient(rgba(11, 14, 20, 0.4), rgba(11, 14, 20, 0.4)), url("/static/fondo_login.jpg");
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }
        
        .login-box {
            background: rgba(15, 23, 42, 0.45); /* Transparente mediano */
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 2.5rem 2rem;
            border-radius: 20px;
            width: 90%;
            max-width: 320px; /* Tamaño mediano que no cubre mucho la imagen */
            text-align: center;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }
        
        input {
            width: 100%;
            padding: 14px;
            margin: 10px 0;
            background: rgba(0,0,0,0.25);
            border: 1px solid var(--border);
            color: white;
            border-radius: 10px;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 1rem;
            transition: 0.3s;
        }
        
        input:focus { outline: none; border-color: var(--accent); background: rgba(0,0,0,0.45);}
        
        .btn {
            background: var(--accent);
            color: #0B0E14;
            border: none;
            padding: 14px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 700;
            width: 100%;
            margin-top: 20px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 1rem;
            transition: 0.3s;
        }
        
        .btn:hover { opacity: 0.8; transform: translateY(-2px); }
        
        [data-theme="light"] {
            --bg: #F1F5F9;
            --card: rgba(255, 255, 255, 0.45); /* Vidrio esmerilado claro */
            --text: #1E293B;
            --border: rgba(0, 0, 0, 0.08);
        }
        [data-theme="light"] body {
            color: var(--text);
        }
        [data-theme="light"] input {
            background: rgba(255, 255, 255, 0.65);
            color: var(--text);
            border-color: rgba(0, 0, 0, 0.12);
        }
        [data-theme="light"] input:focus {
            background: rgba(255, 255, 255, 0.85);
        }
        [data-theme="light"] .login-box {
            background: var(--card);
            border-color: var(--border);
        }
        [data-theme="light"] h2 {
            color: #1E293B;
        }
        /* Toast en login   */
        #toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }
        .toast-item {
            background: #161B22;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 280px;
            max-width: 380px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.4);
            animation: toastIn 0.3s ease forwards;
            position: relative;
            overflow: hidden;
            color: #E2E8F0;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 0.9rem;
            pointer-events: all;
        }
        [data-theme="light"] .toast-item {
            background: #FFFFFF;
            border-color: rgba(0,0,0,0.1);
            color: #1E293B;
        }
        .toast-item.hiding { animation: toastOut 0.3s ease forwards; }
        .toast-bar { position: absolute; bottom: 0; left: 0; height: 3px; }
        @keyframes toastIn  { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
        @keyframes toastOut { from { opacity:1; transform:translateX(0); }    to { opacity:0; transform:translateX(40px); } }
        @keyframes toastBar { from { width:100%; } to { width:0%; } }
        /* Botón tema login */
        #loginThemeBtn {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            color: #94a3b8;
            padding: 8px 14px;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.3s;
        }
        [data-theme="light"] #loginThemeBtn {
            background: rgba(0,0,0,0.05);
            border-color: rgba(0,0,0,0.1);
            color: #475569;
        }
        #loginThemeBtn:hover { opacity: 0.8; }
