/* ═══════════════════════════════════════════════════════════════
   ANGLOLAB — Login (Doctor / Cliente) · acorde a Inicio + listados
   ═══════════════════════════════════════════════════════════════ */

:root {
    --navy: #003d7a;
    --navy-mid: #005099;
    --navy-dark: #002152;
    --accent: #2979ff;
    --navy-light: #e8f0fb;
    --ink: #1a2a3a;
    --muted: #64748b;
    --line: #e2e8f0;
    --white: #ffffff;
    --error: #dc2626;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--navy-dark);
}

/* ── Split (deja espacio para el navbar fijo del master) ─────── */
.container {
    flex: 1;
    display: flex;
    margin-top: 65px;
    min-height: calc(100vh - 65px);
}

.login-card { display: contents; }

/* ── Lado marca con imagen ───────────────────────────────────── */
.brandside {
    flex: 1.1;
    position: relative;
    overflow: hidden;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6vw;
}

    .brandside .bg {
        position: absolute;
        inset: 0;
        background: url('/Images/Pato1.png') center / cover no-repeat;
        filter: saturate(1.12) contrast(1.04);
    }

    .brandside .grad {
        position: absolute;
        inset: 0;
        background: linear-gradient(150deg, rgba(0, 26, 56, 0.92), rgba(0, 33, 82, 0.74) 55%, rgba(41, 121, 255, 0.45));
    }

    .brandside > * { position: relative; z-index: 2; }

.kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a9c9ff;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 18px;
    display: inline-block;
}

.brandside h2 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.15;
    color: var(--white);
}

.brandside .brand-lead {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 360px;
    line-height: 1.6;
    margin: 0;
}

/* ── Lado formulario ─────────────────────────────────────────── */
.formside {
    flex: 1;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 26px 64px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 61, 122, 0.12);
    width: 100%;
    max-width: 400px;
    padding: 26px 30px 30px;
    position: relative;
}

.volver-link { margin-bottom: 14px; }

    .volver-link a {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--navy);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .volver-link a:hover { color: var(--accent); }

/* ── Control segmentado Médico | Cliente ─────────────────────── */
.segmented {
    display: flex;
    background: #eef2f7;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 20px;
}

.seg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

    .seg.active {
        background: var(--navy);
        color: var(--white);
        box-shadow: 0 4px 12px rgba(0, 61, 122, 0.25);
    }

    .seg:not(.active):hover { background: #e2e8f0; }

.title-container h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 22px;
}

/* ── Campos ──────────────────────────────────────────────────── */
.input-group { margin-bottom: 16px; position: relative; }

.animated-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #cdd9e8;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .form-control:focus {
        border-color: var(--navy);
        box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.12);
    }

.eye-icon {
    position: absolute;
    right: 13px;
    top: 37px;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
}

/* ── reCAPTCHA (centrado) ────────────────────────────────────── */
.g-recaptcha {
    margin: 6px 0 18px;
    display: flex;
    justify-content: center;
}

/* ── Botón Ingresar ──────────────────────────────────────────── */
.btn-primary {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

    .btn-primary:hover {
        background: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(41, 121, 255, 0.32);
    }

/* ── Alerta ──────────────────────────────────────────────────── */
.Alerta {
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--error);
}

/* ── Footer fijo ─────────────────────────────────────────────── */
.footer {
    background-color: var(--navy);
    color: white;
    font-weight: 300;
    text-align: center;
    padding: 9px 16px;
    font-size: 11px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-left { margin-left: 10px; }
.footer-right { margin-right: 10px; }

.footer-right a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .footer-right a:hover { color: var(--white); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
    .brandside { display: none; }
    .formside { flex: 1; }
}
