/* ============================================================
   INTELLI-SCHOOL LOGIN PREMIUM SALUD
   Versión sin Google visible, preparada para OAuth futuro.
   ============================================================ */

:root{
    --login-blue:#0b63ce;
    --login-blue-dark:#073b86;
    --login-soft:#eef7ff;
    --login-text:#0f172a;
    --login-muted:#65748b;
    --login-border:#d8e1ef;
    --login-card:#ffffff;
    --login-shadow:0 30px 90px rgba(15,23,42,.16);
    --login-shadow-soft:0 15px 40px rgba(15,23,42,.08);
}

*{box-sizing:border-box}

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

body{
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:var(--login-text);
    background:
        radial-gradient(circle at 4% 40%, rgba(37,99,235,.10), transparent 24%),
        radial-gradient(circle at 96% 12%, rgba(14,165,233,.12), transparent 28%),
        linear-gradient(135deg,#f7fbff,#eaf4ff);
}

.login-health-page{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(440px, 0.95fr) minmax(560px, 1.2fr);
    position:relative;
    overflow:hidden;
}

.login-health-page::before{
    content:"";
    position:absolute;
    left:-80px;
    bottom:-90px;
    width:280px;
    height:280px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(37,99,235,.08),transparent 70%);
}

.login-left{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:48px 36px;
    position:relative;
    z-index:2;
}

.login-card{
    width:min(560px,100%);
    background:rgba(255,255,255,.92);
    border:1px solid rgba(255,255,255,.75);
    border-radius:34px;
    padding:42px;
    box-shadow:var(--login-shadow);
    backdrop-filter:blur(18px);
}

.login-brand{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin-bottom:30px;
}

.login-brand-mark{
    width:58px;
    height:58px;
    border-radius:20px;
    background:linear-gradient(135deg,var(--login-blue),#3b82f6);
    color:#fff;
    display:grid;
    place-items:center;
    box-shadow:0 18px 36px rgba(37,99,235,.24);
}

.login-brand-mark svg{
    width:34px;
    height:34px;
}

.login-brand-name{
    color:#073b86;
    font-size:33px;
    font-weight:950;
    letter-spacing:-.055em;
}

.login-title{
    text-align:center;
    margin-bottom:28px;
}

.login-title h1{
    margin:0;
    font-size:34px;
    line-height:1.05;
    font-weight:950;
    letter-spacing:-.055em;
}

.login-title p{
    margin:10px 0 0;
    color:var(--login-muted);
    font-size:16px;
}

.login-alert{
    border-radius:16px;
    padding:13px 15px;
    margin-bottom:18px;
    background:#fef2f2;
    color:#991b1b;
    border:1px solid #fecaca;
    font-weight:700;
}

.form-group{
    margin-bottom:18px;
}

.form-label{
    display:block;
    margin-bottom:7px;
    color:#334155;
    font-weight:850;
    font-size:13px;
}

.input-wrap{
    position:relative;
}

.input-icon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#8a97aa;
    display:grid;
    place-items:center;
    width:22px;
    height:22px;
}

.input-wrap input{
    width:100%;
    height:54px;
    border:1px solid var(--login-border);
    border-radius:14px;
    background:#fff;
    color:var(--login-text);
    padding:0 46px;
    font-size:15px;
    outline:none;
    transition:.16s ease;
    box-shadow:0 5px 14px rgba(15,23,42,.025);
}

.input-wrap input:focus{
    border-color:#8bb8ff;
    box-shadow:0 0 0 5px rgba(37,99,235,.12);
}

.password-toggle{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    border:0;
    background:transparent;
    color:#8a97aa;
    cursor:pointer;
    padding:4px;
}

.login-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:4px 0 26px;
}

.remember{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#64748b;
    font-weight:700;
}

.remember input{
    width:18px;
    height:18px;
    accent-color:var(--login-blue);
}

.forgot-link{
    color:var(--login-blue);
    font-weight:850;
    font-size:14px;
    text-decoration:none;
}

.login-button{
    width:100%;
    height:56px;
    border:0;
    border-radius:14px;
    color:#fff;
    background:linear-gradient(135deg,var(--login-blue),#0476e8);
    font-weight:900;
    font-size:16px;
    cursor:pointer;
    box-shadow:0 18px 30px rgba(37,99,235,.22);
    transition:.18s ease;
}

.login-button:hover{
    transform:translateY(-1px);
    box-shadow:0 22px 38px rgba(37,99,235,.27);
}

/* Preparado para Google OAuth futuro.
   Cuando se active, quitar class="login-oauth-hidden" del bloque en login.php. */
.login-oauth-hidden{
    display:none!important;
}

.login-divider{
    display:flex;
    align-items:center;
    gap:14px;
    color:#98a2b3;
    font-size:13px;
    margin:24px 0;
}

.login-divider::before,
.login-divider::after{
    content:"";
    height:1px;
    background:#dbe4ef;
    flex:1;
}

.google-button{
    width:100%;
    height:54px;
    border:1px solid var(--login-border);
    background:#fff;
    color:#64748b;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    font-weight:850;
    font-size:15px;
    text-decoration:none;
    box-shadow:0 5px 14px rgba(15,23,42,.025);
}

.login-purpose{
    margin-top:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:#64748b;
}

.login-purpose-icon{
    width:42px;
    height:42px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:var(--login-soft);
    color:var(--login-blue);
    flex:0 0 auto;
}

.login-badges{
    position:absolute;
    left:50%;
    bottom:28px;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:24px;
    color:#4b5b73;
    font-weight:850;
    z-index:3;
    white-space:nowrap;
}

.login-badges span{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.login-badges i{
    width:7px;
    height:7px;
    background:#c8d4e6;
    border-radius:50%;
    display:inline-block;
}

.login-hero{
    position:relative;
    min-height:100vh;
    overflow:hidden;
}

.login-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,#f7fbff 0%,rgba(247,251,255,.78) 10%,rgba(247,251,255,.18) 34%,rgba(247,251,255,0) 48%),
        radial-gradient(circle at 0% 50%,rgba(255,255,255,.95) 0 32%, transparent 33%);
    z-index:2;
    pointer-events:none;
}

.login-hero::after{
    content:"";
    position:absolute;
    left:-16%;
    top:-8%;
    width:72%;
    height:116%;
    background:rgba(255,255,255,.72);
    border-radius:50%;
    z-index:1;
    box-shadow:0 0 0 26px rgba(239,247,255,.76);
    pointer-events:none;
}

.hero-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:74% center;
    filter:saturate(1.02) contrast(1.02);
}

.hero-overlay-card{
    position:absolute;
    right:36px;
    bottom:36px;
    z-index:4;
    max-width:330px;
    border-radius:24px;
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(16px);
    border:1px solid rgba(255,255,255,.78);
    box-shadow:var(--login-shadow-soft);
    padding:20px;
}

.hero-overlay-card strong{
    display:block;
    color:#073b86;
    font-size:17px;
    margin-bottom:6px;
}

.hero-overlay-card p{
    margin:0;
    color:#64748b;
}

@media(max-width:1180px){
    .login-health-page{
        grid-template-columns:1fr;
    }

    .login-hero{
        display:none;
    }

    .login-left{
        min-height:100vh;
        padding-bottom:90px;
    }

    .login-badges{
        bottom:22px;
    }
}

@media(max-width:620px){
    .login-left{
        padding:24px 16px 92px;
    }

    .login-card{
        padding:28px 22px;
        border-radius:26px;
    }

    .login-brand-name{
        font-size:27px;
    }

    .login-title h1{
        font-size:28px;
    }

    .login-options{
        align-items:flex-start;
        flex-direction:column;
    }

    .login-badges{
        gap:12px;
        font-size:12px;
        flex-wrap:wrap;
        width:100%;
        padding:0 16px;
    }
}
