/* =========================================================
   HORIZONTE IPS - LOGIN
   Diseño moderno sin imágenes de fondo
   ========================================================= */

:root {
    --blue: #087fe5;
    --blue-dark: #123f86;
    --blue-light: #eaf5ff;
    --cyan: #1aa9df;
    --green: #73c92d;
    --orange: #ff8a31;
    --text: #12366d;
    --muted: #7d91ae;
    --border: #cbdff4;
    --white: #ffffff;
    --page: #eef7fd;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
}

body {
    min-height: 100vh;
}

/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('fondo.jpg?v=2');
    background-size: cover;
    background-position: center;
    /*
    background:
        radial-gradient(circle at 15% 20%, #ffffff 0, transparent 28%),
        radial-gradient(circle at 85% 80%, #d9efff 0, transparent 34%),
        linear-gradient(135deg, #edf7fd 0%, #f8fcff 48%, #e4f3fd 100%);
        */
}

/* Decoraciones suaves */


.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-page::before {
    width: 480px;
    height: 480px;
    left: -260px;
    bottom: -230px;
    border: 1px solid rgba(8, 127, 229, .12);
    box-shadow:
        0 0 0 55px rgba(8, 127, 229, .035),
        0 0 0 110px rgba(8, 127, 229, .025);
}

.login-page::after {
    width: 350px;
    height: 350px;
    right: -190px;
    top: -180px;
    border: 1px solid rgba(26, 169, 223, .12);
    box-shadow:
        0 0 0 45px rgba(26, 169, 223, .035),
        0 0 0 90px rgba(26, 169, 223, .025);
}



/* =========================================================
   HEXÁGONOS DECORATIVOS
   ========================================================= */

.medical-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .7;
}

.hex {
    position: absolute;
    width: 92px;
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(8, 127, 229, .35);
    font-size: 36px;
    font-weight: 700;
    background: rgba(255, 255, 255, .38);
    border: 2px solid rgba(255, 255, 255, .9);
    clip-path: polygon(
        25% 3%,
        75% 3%,
        100% 25%,
        100% 75%,
        75% 97%,
        25% 97%,
        0 75%,
        0 25%
    );
}

.hex-1 {
    left: 5%;
    top: 12%;
}

.hex-2 {
    left: 12%;
    top: 29%;
}

.hex-3 {
    left: 4%;
    bottom: 18%;
}

.hex-4 {
    right: 8%;
    top: 18%;
}

.hex-5 {
    right: 15%;
    bottom: 17%;
}

.hex-6 {
    right: 4%;
    bottom: 34%;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.login-layout {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 50px));
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 520px;
    align-items: center;
    gap: 55px;
}

/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */

.intro-panel {
    min-height: 580px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-large {
    margin-bottom: 42px;
}

.brand-symbol {
    position: relative;
    width: 72px;
    height: 76px;
    flex: 0 0 72px;
}

.brand-small .brand-symbol {
    width: 48px;
    height: 51px;
    flex-basis: 48px;
}

.symbol-dot,
.symbol-left,
.symbol-right,
.symbol-center {
    position: absolute;
    display: block;
}

.symbol-dot {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--green);
    top: 0;
    left: 27px;
}

.brand-small .symbol-dot {
    width: 13px;
    height: 13px;
    left: 18px;
}

.symbol-left {
    width: 27px;
    height: 48px;
    left: 11px;
    top: 18px;
    background: var(--cyan);
    border-radius: 80% 20% 70% 25%;
    transform: rotate(-30deg);
}

.brand-small .symbol-left {
    width: 18px;
    height: 32px;
    left: 7px;
    top: 13px;
}

.symbol-right {
    width: 27px;
    height: 48px;
    right: 10px;
    top: 18px;
    background: var(--orange);
    border-radius: 20% 80% 25% 70%;
    transform: rotate(30deg);
}

.brand-small .symbol-right {
    width: 18px;
    height: 32px;
    right: 7px;
    top: 13px;
}

.symbol-center {
    width: 17px;
    height: 42px;
    left: 27px;
    top: 28px;
    background: linear-gradient(180deg, var(--green), #1eae72);
    border-radius: 10px;
}

.brand-small .symbol-center {
    width: 12px;
    height: 29px;
    left: 18px;
    top: 19px;
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-name strong {
    font-size: 48px;
    line-height: .95;
    letter-spacing: -2px;
    color: #102f72;
}

.brand-small .brand-name strong {
    font-size: 28px;
    letter-spacing: -1px;
}

.brand-name small {
    margin-top: 7px;
    font-size: 17px;
    color: #078ed1;
}

.brand-small .brand-name small {
    margin-top: 4px;
    font-size: 11px;
}

/* Iconos médicos */
.medical-icons {
    position: relative;
    width: 440px;
    height: 290px;
    margin-left: 10px;
}

.medical-icon {
    position: absolute;
    width: 112px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5d9bdd;
    font-size: 43px;
    background: rgba(255,255,255,.62);
    border: 2px solid rgba(255,255,255,.92);
    clip-path: polygon(
        25% 3%,
        75% 3%,
        100% 25%,
        100% 75%,
        75% 97%,
        25% 97%,
        0 75%,
        0 25%
    );
}

.medical-icon::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(8,127,229,.10);
    clip-path: inherit;
}

.medical-icon.icon-main {
    width: 138px;
    height: 158px;
    left: 145px;
    top: 15px;
    background: rgba(8,127,229,.82);
    color: white;
    font-size: 70px;
    box-shadow: 0 15px 35px rgba(8,127,229,.18);
}

.medical-icon:nth-child(2) {
    left: 20px;
    top: 88px;
}

.medical-icon:nth-child(3) {
    right: 15px;
    top: 92px;
}

.medical-icon:nth-child(4) {
    left: 80px;
    bottom: 0;
}

.medical-icon:nth-child(5) {
    right: 95px;
    bottom: 0;
}

.intro-message {
    margin-top: 15px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    color: #1263b4;
    font-size: 34px;
    line-height: 1.08;
    transform: rotate(-3deg);
}

/* =========================================================
   TARJETA LOGIN
   ========================================================= */

.login-card {
    width: 100%;
    padding: 32px 46px 25px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    background: rgba(255,255,255,.87);
    box-shadow:
        0 25px 70px rgba(31, 86, 133, .17),
        0 5px 18px rgba(31, 86, 133, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: url('fondo_form.jpg?v=2') #d1ebfc;
    background-size: 100%;
    background-repeat: no-repeat;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    /*background: url('fondo_form.png');
    background-size: cover;*/
    height: 120px;
}

.staff-badge {
    width: 104px;
    height: 58px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    background: linear-gradient(135deg, #e8f7ff, #d7efff);
}

.staff-badge span {
    display: block;
    width: 28px;
    height: 48px;
    border-radius: 50% 50% 0 0;
    background: #55a9df;
    position: relative;
}

.staff-badge span::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: -9px;
    left: 5px;
    background: #f2c6a8;
}

.staff-badge span:nth-child(2) {
    height: 53px;
    background: #e9f4fb;
}

.staff-badge span:nth-child(2)::before {
    background: #f0c1a0;
}

.staff-badge span:nth-child(3) {
    background: #4b91ce;
}

/* =========================================================
   BIENVENIDA
   ========================================================= */

.welcome {
    margin: 8px 0 25px;
}

.welcome h1 {
    margin: 0;
    color: #123d7b;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
}

.welcome p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > svg {
    position: absolute;
    left: 17px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #527ba9;
    stroke-width: 1.8;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 56px;
    padding: 0 48px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    outline: none;
    background: rgba(255,255,255,.82);
    color: #234875;
    font-size: 15px;
    transition: .2s ease;
}

.input-wrapper input::placeholder {
    color: #8a9db6;
}

.input-wrapper input:hover {
    border-color: #a9cae9;
}

.input-wrapper input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(8,127,229,.10);
    background: white;
}

.password-toggle {
    position: absolute;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}

.password-toggle:hover {
    background: #edf6fd;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #527ba9;
    stroke-width: 1.7;
}

/* =========================================================
   BOTÓN
   ========================================================= */

.login-button {
    height: 57px;
    margin-top: 5px;
    border: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: white;
    background: linear-gradient(135deg, #1599ed, #0874dc);
    box-shadow: 0 9px 20px rgba(8,127,229,.22);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.login-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 25px rgba(8,127,229,.28);
}

.login-button:active {
    transform: translateY(0);
}

/* =========================================================
   ACCESO SEGURO
   ========================================================= */

.secure-access {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 29px 0 24px;
}

.secure-access .line {
    height: 1px;
    flex: 1;
    background: #d7e4ef;
}

.secure-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6684a7;
    font-size: 13px;
    white-space: nowrap;
}

.secure-label svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #5c82aa;
    stroke-width: 1.7;
}

/* =========================================================
   FOOTER
   ========================================================= */

.login-card footer {
    padding-top: 18px;
    border-top: 1px solid #d8e4ee;
    text-align: center;
    color: #6e89a8;
    font-size: 11.5px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .login-layout {
        grid-template-columns: 1fr;
        width: min(560px, calc(100% - 30px));
        min-height: auto;
        padding: 35px 0;
    }

    .intro-panel {
        min-height: auto;
        padding: 10px;
        align-items: center;
        text-align: center;
    }

    .brand-large {
        margin-bottom: 20px;
    }

    .brand-large .brand-name strong {
        font-size: 40px;
    }

    .medical-icons {
        display: none;
    }

    .intro-message {
        margin: 5px 0 15px;
        font-size: 26px;
    }

    .login-card {
        padding: 30px 35px 25px;
    }
}

@media (max-width: 560px) {

    .login-layout {
        width: calc(100% - 22px);
        padding: 15px 0;
    }

    .intro-panel {
        padding: 5px;
    }

    .brand-large .brand-symbol {
        width: 55px;
        height: 58px;
        flex-basis: 55px;
    }

    .brand-large .brand-name strong {
        font-size: 32px;
    }

    .brand-large .brand-name small {
        font-size: 13px;
    }

    .intro-message {
        font-size: 23px;
    }

    .login-card {
        padding: 24px 20px 20px;
        border-radius: 18px;
    }

    .brand-small .brand-name strong {
        font-size: 25px;
    }

    .staff-badge {
        width: 80px;
        height: 48px;
    }

    .staff-badge span {
        width: 21px;
        height: 40px;
    }

    .staff-badge span::before {
        width: 14px;
        height: 14px;
        left: 3.5px;
    }

    .welcome h1 {
        font-size: 28px;
    }

    .welcome p {
        font-size: 14px;
    }

    .input-wrapper input {
        height: 53px;
    }

    .login-button {
        height: 54px;
    }

    .hex {
        transform: scale(.7);
    }
}


.hidden {
    visibility: hidden;
}
