/* ── Login LexStudio ─────────────────────────────────────── */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top, #1e3a8a, #020617);
    color: #fff;
    overflow: hidden;
}

/* CURSOR GLOW */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56,189,248,0.25), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* PARTICLES */
.particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 12s linear infinite;
}

@keyframes float {
    from { transform: translateY(100vh); }
    to   { transform: translateY(-10vh); }
}

/* CENTER */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* CARD */
.login-box {
    width: 100%;
    max-width: 380px;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: fadeUp 1s ease;
    position: relative;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* BACK */
.back-home {
    position: absolute;
    top: -50px;
    left: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}
.back-home:hover { color: #38bdf8; }

/* LOGO */
.login-logo { text-align: center; margin-bottom: 25px; }
.login-logo h1 {
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* INPUT */
.form-group { position: relative; margin-bottom: 15px; }
.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #fff;
    outline: none;
    box-sizing: border-box;
}

.toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* BUTTON */
.btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-primary:hover { transform: scale(1.05); }

/* LOADER */
.loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}
.loader.active { opacity: 1; pointer-events: all; }
.loader span {
    width: 12px; height: 12px;
    margin: 5px;
    background: #38bdf8;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1s infinite;
}
.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* CAPTCHA */
.captcha-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}
.captcha-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.captcha-inner {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.captcha-inner:hover { border-color: #c7d2fe; background: #f8faff; }
.captcha-expression {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    letter-spacing: 0.5px;
}
.captcha-expression span { margin-left: 4px; color: #6b7280; }
.captcha-input {
    width: 70px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    color: #111827;
}
.captcha-inner:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.12);
}
.captcha-error { margin-top: 6px; font-size: 12px; color: #dc2626; }

/* ALERTS DE ERROR */
.alert-error {
    background: rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.4);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #fca5a5;
}
