@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --blue: #0E4BF1;
    --blue-dark: #0a38c0;
    --border: rgba(255,255,255,0.1);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ── CONTENEDOR PRINCIPAL ── */
.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0f1e;
}

/* ── VIDEO DE FONDO ── */
.page video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ── OVERLAY ── */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,15,30,0.88) 0%, rgba(14,75,241,0.22) 100%);
    z-index: 1;
}

/* ── WRAPPER DEL FORMULARIO ── */
.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 24px;
}

/* ── LOGO ── */
.login-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.login-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.login-logo span {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* ── CARD ── */
.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.login-card h1 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.login-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ── INPUTS ── */
.input-group {
    position: relative;
    margin-bottom: 14px;
}
.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}
.input-group input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.input-group input::placeholder {
    color: var(--text-muted);
}
.input-group input:focus {
    border-color: var(--blue);
    background: rgba(14,75,241,0.08);
}

/* ── ERROR ── */
.error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.4);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

/* ── BOTÓN ── */
button[type="submit"] {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(14,75,241,0.4);
}
button[type="submit"]:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(14,75,241,0.5);
}

/* ── FOOTER ── */
.login-footer {
    margin-top: 20px;
    text-align: center;
}
.login-footer a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.login-footer a:hover {
    color: #6b9fff;
}

/* ── BOTÓN DE AUDIO ── */
.mute-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10,15,30,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mute-btn:hover {
    background: rgba(14,75,241,0.35);
    border-color: rgba(14,75,241,0.6);
    color: #fff;
}

@media (max-width: 440px) {
    .login-card { padding: 32px 20px; }
}
