/* ======================
   CAPA 1 → FONDO REAL
======================= */

body {
    background:
        linear-gradient(120deg, rgba(0,0,0,0), rgba(0,0,0,0.2)),
        url('/img/fondo-login.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    z-index: 1;
}


/* ======================
   CAPA 2 → CANVAS PARTÍCULAS
======================= */

#ag-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* para que no bloquee clics */
    z-index: 2;           /* encima del fondo */
    display: block;
}


/* ======================
   CAPA 3 → CONTENEDOR LOGIN
======================= */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: right;
    min-height: 100vh;
    padding-right: 10%;
    position: relative;
    z-index: 3; /* encima del canvas */
}


/* ======================
   CAPA 4 → PANEL LOGIN
======================= */

.login-panel {
    width: 380px;
    max-width: 90%;
    background: rgba(255,255,255,0.7);
    padding: 8rem 2.25rem;
    height: 100vh;
    position: relative;
    z-index: 4;
}

body.theme-dark .login-panel {
    background: #161c22;
    box-shadow: 0 8px 22px rgba(0,0,0,0.6);
}


/* ======================
   ESTILOS ORIGINALES
======================= */

.login-logo img {
    max-width: 200px;
    margin: 0 auto 0.75rem;
    display: block;
}

.login-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
}

body.theme-dark .login-title {
    color: #f5f5f5;
}

.login-subtitle {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #777;
}

body.theme-dark .login-subtitle {
    color: #c4c4c4;
}

.login-btn-primary {
    background: var(--arrabal-orange);
    color: #fff;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.login-btn-primary:hover {
    filter: brightness(0.95);
}

.login-separator {
    text-align: center;
    margin: 1.25rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    position: relative;
}

.login-separator::before,
.login-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(0,0,0,0.15);
}

.login-separator::before { left: 0; }
.login-separator::after  { right: 0; }

body.theme-dark .login-separator {
    color: #bdbdbd;
}
body.theme-dark .login-separator::before,
body.theme-dark .login-separator::after {
    background: rgba(255,255,255,0.2);
}

.login-btn-microsoft {
    background: #2f2f2f;
    color: #ffffff;
    border: none;
    font-weight: 500;
}
.login-btn-microsoft:hover {
    filter: brightness(1.08);
    color: #ffffff !important;
}
.login-btn-microsoft:focus,
.login-btn-microsoft:active {
    color: #ffffff !important;
}
.login-btn-microsoft:hover span,
.login-btn-microsoft:focus span,
.login-btn-microsoft:active span {
    color: #ffffff !important;
}
.login-btn-microsoft .icon {
    border-right: 1px solid rgba(255,255,255,0.25);
    padding-right: 0.75rem;
    margin-right: 0.5rem;
}

.login-hint {
    margin-top: 1rem;
    font-size: 0.75rem;
    text-align: center;
    color: #777;
}

body.theme-dark .login-hint {
    color: #bcbcbc;
}
