
        :root {
            --bg: #0b0b22; 
            --card-bg: rgba(21, 21, 42, 0.95); 
            --card-border: rgba(255, 255, 255, 0.1);
            --primary: #9d5bff; 
            --text: #ffffff; 
            --text-muted: #94a3b8; 
            --input-bg: #0a0a16;
            --border: #2d3748; 
            --success: #00d26a; 
            --error: #ff4b4b; 
            --radius: 16px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg);
            background-image: url('images/fondo-principal.jpg');
            background-size: cover;
            background-position: center center;
            background-attachment: fixed;
            position: relative;
            z-index: 1;
            color: var(--text);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(11, 11, 34, 0.85);
            z-index: -1;
            backdrop-filter: blur(3px);
        }

        .login-card {
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 40px 35px;
            border-radius: var(--radius);
            border: 1px solid var(--card-border);
            width: 100%;
            max-width: 450px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
            position: relative;
            overflow: hidden;
            border-top: 3px solid var(--primary);
            animation: fadeIn 0.5s ease-out;
        }

        .back-link { 
            position: absolute; top: 20px; left: 20px; 
            color: var(--text-muted); text-decoration: none; 
            font-size: 0.85rem; font-weight: 500; transition: 0.3s; 
        }
        .back-link:hover { color: #fff; transform: translateX(-3px); }

        .logo-image {
            display: block; margin: 0 auto 10px auto; 
            max-width: 140px; opacity: 0.9;
        }

        h1 { 
            font-weight: 800; font-size: 1.8rem; text-align: center; 
            margin-top: 5px; margin-bottom: 25px; color: #fff; 
            letter-spacing: -0.5px;
        }

        .error-container, .success-container {
            padding: 12px 15px; margin-bottom: 20px; border-radius: 8px;
            font-weight: 600; font-size: 0.9rem; text-align: center;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .error-container { background: rgba(255, 75, 75, 0.1); border: 1px solid rgba(255, 75, 75, 0.3); color: #ff6b6b; }
        .success-container { background: rgba(0, 210, 106, 0.1); border: 1px solid rgba(0, 210, 106, 0.3); color: #00e074; }
        .error-container p, .success-container p { margin: 0; }

        .form-group { margin-bottom: 20px; }
        .form-group label { 
            display: block; font-weight: 500; font-size: 0.9rem; 
            margin-bottom: 8px; color: #ccc; 
        }
        
        input[type="text"], input[type="email"], input[type="password"] {
            width: 100%; padding: 14px 16px; 
            background: var(--input-bg);
            border: 1px solid var(--border); 
            border-radius: 10px; color: #fff;
            font-size: 1rem; font-family: 'Poppins', sans-serif;
            transition: all 0.2s ease;
        }
        input:focus {
            border-color: var(--primary);
            background: #121225;
            box-shadow: 0 0 0 3px rgba(157, 91, 255, 0.2);
        }
        ::placeholder { color: #666; opacity: 1; }

        .btn { 
            display: block; width: 100%; padding: 16px; 
            background: linear-gradient(135deg, var(--primary), #6d28d9);
            color: #fff; border-radius: 10px; text-decoration: none; 
            font-weight: 700; font-size: 1.05rem; border: none; cursor: pointer; 
            transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(157, 91, 255, 0.3);
        }
        .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(157, 91, 255, 0.5); }

        .form-links { 
            text-align: center; margin-top: 25px; padding-top: 20px; 
            border-top: 1px solid var(--border); 
            display: flex; flex-direction: column; gap: 10px;
        }
        .form-links a {
            color: var(--text-muted); font-size: 0.9rem; text-decoration: none; transition: 0.3s; cursor: pointer; font-family: 'Poppins', sans-serif;
        }
        .form-links a:hover { color: #fff; text-decoration: underline; }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    