@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;400;600&family=Roboto:wght@100;500;700&display=swap");

:root {
    --azul: #0c96e1;
    --bgFondo: #0c0c0d;
    --bgFondo2: #0b121e;
    --muted: #ededed;
    --blanco: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

body.login-page {
    min-height: 100vh;
    background: var(--bgFondo);
    font-family: "Raleway", sans-serif;
    overflow-x: hidden;
}

/* ── Botón volver ── */
.login-back {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    color: rgba(237, 237, 237, 0.5);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: color .3s;
    z-index: 100;
    font-family: "Roboto", sans-serif;
    letter-spacing: .03rem;
}
.login-back i { font-size: 1.2rem; }
.login-back:hover { color: var(--azul); }

/* ── Layout principal ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Panel izquierdo (branding) ── */
.lp-left {
    flex: 1.1;
    background: linear-gradient(160deg, #070d16 0%, #0b121e 60%, #0c1929 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Anillos decorativos */
.lp-left::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(12, 150, 225, 0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.lp-left::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(12, 150, 225, 0.22);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Manchas de luz */
.lp-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.lp-glow-1 {
    width: 250px;
    height: 250px;
    background: rgba(12, 150, 225, 0.12);
    top: -60px;
    left: -60px;
}
.lp-glow-2 {
    width: 180px;
    height: 180px;
    background: rgba(93, 220, 255, 0.08);
    bottom: 40px;
    right: 30px;
}

/* Contenido del panel izquierdo */
.lp-brand {
    text-align: center;
    z-index: 1;
    position: relative;
}
.lp-brand img {
    width: 110px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 24px rgba(12, 150, 225, 0.45));
}
.lp-brand h1 {
    font-size: 2.6rem;
    color: var(--blanco);
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    margin-bottom: .6rem;
    line-height: 1.1;
}
.lp-brand h1 .lp-span {
    background: linear-gradient(90deg, #0c96e1, #5ddcff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-brand p {
    color: rgba(237, 237, 237, 0.45);
    font-size: .95rem;
    letter-spacing: .06rem;
    text-transform: uppercase;
    margin-top: .3rem;
}

/* Separador decorativo */
.lp-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 2.5rem auto 0;
    width: 180px;
    z-index: 1;
    position: relative;
}
.lp-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(12, 150, 225, 0.5), transparent);
}
.lp-divider i {
    font-size: 1.4rem;
    color: var(--azul);
    opacity: .6;
}

/* ── Divisor vertical ── */
.lp-separator {
    width: 1px;
    background: linear-gradient(to bottom, transparent 5%, rgba(12,150,225,.25) 30%, rgba(12,150,225,.25) 70%, transparent 95%);
    flex-shrink: 0;
}

/* ── Panel derecho (formulario) ── */
.lp-right {
    flex: 1;
    background: var(--bgFondo);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 3rem;
}

.lp-form-box {
    width: 100%;
    max-width: 400px;
}

.lp-form-box h2 {
    font-size: 2.2rem;
    color: var(--blanco);
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    margin-bottom: .4rem;
}
.lp-subtitle {
    color: rgba(237, 237, 237, 0.4);
    font-size: .9rem;
    margin-bottom: 2.8rem;
    letter-spacing: .02rem;
}

/* ── Alertas ── */
.lp-alert {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.2rem;
    border-radius: .5rem;
    margin-bottom: 1.8rem;
    font-size: .88rem;
    font-family: "Roboto", sans-serif;
}
.lp-alert i { font-size: 1.3rem; flex-shrink: 0; }
.lp-alert.error {
    background: rgba(220, 53, 69, .12);
    border: 1px solid rgba(220, 53, 69, .35);
    color: #f87171;
}
.lp-alert.warning {
    background: rgba(251, 191, 36, .08);
    border: 1px solid rgba(251, 191, 36, .3);
    color: #fbbf24;
}

/* ── Formulario ── */
.lp-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.lp-field {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(237, 237, 237, 0.18);
    transition: border-color .3s;
    padding-bottom: .2rem;
}
.lp-field:focus-within {
    border-color: var(--azul);
}
.lp-field i {
    font-size: 1.25rem;
    color: rgba(237, 237, 237, 0.3);
    margin-right: .9rem;
    transition: color .3s;
    flex-shrink: 0;
}
.lp-field:focus-within i {
    color: var(--azul);
}
.lp-field input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: .85rem 0;
    color: var(--blanco);
    font-size: .95rem;
    font-family: "Raleway", sans-serif;
    width: 100%;
}
.lp-field input::placeholder {
    color: rgba(237, 237, 237, 0.3);
}

/* ── Botón submit ── */
.lp-submit {
    margin-top: .6rem;
    width: 100%;
    padding: 1rem;
    background: var(--azul);
    color: var(--blanco);
    border: none;
    border-radius: .5rem;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    letter-spacing: .06rem;
    transition: background .3s, box-shadow .3s, transform .2s;
}
.lp-submit i {
    font-size: 1.4rem;
    transition: transform .3s;
}
.lp-submit:hover {
    background: #0a84c8;
    box-shadow: 0 8px 32px rgba(12, 150, 225, .35);
    transform: translateY(-1px);
}
.lp-submit:hover i {
    transform: translateX(4px);
}
.lp-submit:active {
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-back {
        top: 1rem;
        left: 1.2rem;
        font-size: .82rem;
    }

    .login-wrapper {
        flex-direction: column;
    }

    .lp-separator { display: none; }

    .lp-left {
        min-height: 38vh;
        padding: 4rem 2rem 2.5rem;
    }
    .lp-left::before { width: 280px; height: 280px; }
    .lp-left::after  { width: 180px; height: 180px; }

    .lp-brand img { width: 80px; margin-bottom: 1.2rem; }
    .lp-brand h1  { font-size: 2rem; }
    .lp-brand p   { font-size: .82rem; }
    .lp-divider   { margin-top: 1.8rem; }

    .lp-right {
        padding: 3rem 1.5rem 4rem;
    }

    .lp-form-box h2 { font-size: 1.8rem; }
    .lp-subtitle { margin-bottom: 2rem; }
}

@media (max-width: 400px) {
    .lp-left { min-height: 32vh; padding: 3.5rem 1.5rem 2rem; }
    .lp-brand img { width: 65px; }
    .lp-brand h1  { font-size: 1.7rem; }
    .lp-right { padding: 2.5rem 1.2rem 3rem; }
}
