﻿
:root {
    --blue: #0878dc;
    --blue-dark: #0756aa;
    --blue-soft: #e9f5ff;
    --cyan: #18c6c0;
    --cyan-dark: #0aa7a3;
    --navy: #083d78;
    --text: #123f72;
    --muted: #7890ae;
    --white: #ffffff;
    --background: #eef9ff;
    --border: #dce9f5;
    --shadow: 0 30px 80px rgba(24, 101, 160, .16);
}


/* =========================================================
                   RESET
                ========================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html,
body {
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
}


body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(42, 163, 255, .16), transparent 28%), radial-gradient(circle at 90% 80%, rgba(22, 210, 192, .18), transparent 28%), linear-gradient(135deg, #edf8ff 0%, #f8fcff 48%, #effcfb 100%);
}


/* =========================================================
                   FONDO
                ========================================================== */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}


.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    opacity: .45;
    animation: orbFloat 12s ease-in-out infinite;
}


.orb-1 {
    width: 300px;
    height: 300px;
    left: -100px;
    top: -80px;
    background: radial-gradient(circle, rgba(0, 140, 255, .22), transparent 70%);
}


.orb-2 {
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(18, 205, 190, .20), transparent 70%);
    animation-delay: -5s;
}


@keyframes orbFloat {

    0%, 100% {
        transform: translate3d(0,0,0) scale(1);
    }

    50% {
        transform: translate3d(25px,-20px,0) scale(1.08);
    }
}


/* =========================================================
                   PARTICULAS
                ========================================================== */

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 142, 235, .22);
    animation: particleFloat 8s ease-in-out infinite;
}


.p1 {
    top: 12%;
    left: 10%;
}

.p2 {
    top: 30%;
    left: 5%;
    animation-delay: -2s;
}

.p3 {
    top: 18%;
    right: 12%;
    animation-delay: -4s;
}

.p4 {
    bottom: 22%;
    right: 8%;
    animation-delay: -1s;
}

.p5 {
    bottom: 12%;
    left: 17%;
    animation-delay: -3s;
}


@keyframes particleFloat {

    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: .3;
    }

    50% {
        transform: translateY(-22px) scale(1.5);
        opacity: .9;
    }
}


/* =========================================================
                   CONTENEDOR PRINCIPAL
                ========================================================== */

.medical-login {
    width: 100%;
    max-width: 1400px;
    min-height: 800px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: rgba(255,255,255,.90);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 35px 100px rgba(30, 92, 140, .17), 0 0 0 rgba(20, 180, 220, 0);
    animation: containerAppear .9s ease both, panelGlow 5s ease-in-out infinite;
    isolation: isolate;
}


    .medical-login::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 30px;
        pointer-events: none;
        z-index: 50;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.70), inset 0 0 35px rgba(42,190,220,.05);
        animation: borderGlow 4s ease-in-out infinite;
    }


@keyframes panelGlow {

    0%, 100% {
        box-shadow: 0 35px 100px rgba(30, 92, 140, .17), 0 0 0 rgba(20, 180, 220, 0);
    }

    50% {
        box-shadow: 0 35px 100px rgba(30, 92, 140, .17), 0 0 40px rgba(40, 190, 220, .12);
    }
}


@keyframes borderGlow {

    0%, 100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), inset 0 0 45px rgba(42,190,220,.09);
    }
}


@keyframes containerAppear {

    from {
        opacity: 0;
        transform: translateY(30px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
                   PANEL IZQUIERDO
                ========================================================== */

.brand-panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 800px;
    background: linear-gradient(145deg, #f3fbff 0%, #e8f9fc 45%, #dff9f4 100%);
}


    /* =========================================================
                   BRILLO PANEL IZQUIERDO
                ========================================================== */

    .brand-panel::after {
        content: "";
        position: absolute;
        top: -80%;
        left: -70%;
        width: 38%;
        height: 260%;
        pointer-events: none;
        z-index: 6;
        transform: rotate(25deg);
        background: linear-gradient( 90deg, transparent 0%, transparent 25%, rgba(255,255,255,.03) 38%, rgba(255,255,255,.72) 50%, rgba(255,255,255,.08) 62%, transparent 75%, transparent 100% );
        filter: blur(1px);
        opacity: 0;
        animation: brandPanelShine 8s ease-in-out infinite;
    }


@keyframes brandPanelShine {

    0% {
        left: -75%;
        opacity: 0;
    }

    10% {
        opacity: .10;
    }

    22% {
        opacity: .72;
    }

    38% {
        left: 135%;
        opacity: .22;
    }

    45% {
        left: 155%;
        opacity: 0;
    }

    100% {
        left: 155%;
        opacity: 0;
    }
}


/* =========================================================
                   MÉDICO
                ========================================================== */

.doctor-watermark {
    position: absolute;
    width: 700px;
    height: 880px;
    right: -45px;
    bottom: 15px;
    object-fit: contain;
    object-position: center bottom;
    opacity: .28;
    filter: saturate(.70) contrast(.90) brightness(1.08) drop-shadow( 0 20px 45px rgba(0,150,180,.10) );
    z-index: 1;
    pointer-events: none;
    animation: doctorWatermarkFloat 7s ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform;
}


@keyframes doctorWatermarkFloat {

    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-14px) scale(1.018);
    }
}


/* =========================================================
                   GLOW MÉDICO
                ========================================================== */

.doctor-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -120px;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(0,190,190,.18), transparent 68% );
    filter: blur(10px);
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite;
}


@@keyframes glowPulse {

    0%, 100% {
        transform: scale(1);
        opacity: .65;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}


/* =========================================================
                   GRID
                ========================================================== */

.medical-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .35;
    background-image: linear-gradient( rgba(0,139,220,.035) 1px, transparent 1px ), linear-gradient( 90deg, rgba(0,139,220,.035) 1px, transparent 1px );
    background-size: 42px 42px;
    mask-image: linear-gradient( to bottom, black, transparent 85% );
}


/* =========================================================
                   DECORACIONES
                ========================================================== */

.decor-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(18,174,194,.12);
    z-index: 1;
    animation: decorFloat 8s ease-in-out infinite;
}


    .decor-circle.one {
        width: 180px;
        height: 180px;
        left: -90px;
        top: 130px;
    }


    .decor-circle.two {
        width: 250px;
        height: 250px;
        right: -120px;
        top: 80px;
        animation-delay: -3s;
    }


@keyframes decorFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* =========================================================
                   CONTENIDO IZQUIERDO
                ========================================================== */

.brand-content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 55px 65px;
    display: flex;
    flex-direction: column;
}


.brand-logo {
    width: 330px;
    max-width: 75%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow( 0 8px 15px rgba(0,100,160,.10) );
    animation: logoEntrance .9s ease both, logoFloat 5s 1s ease-in-out infinite;
}


@keyframes logoEntrance {

    from {
        opacity: 0;
        transform: translateY(-25px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes logoFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


/* =========================================================
                   HERO
                ========================================================== */

.hero {
    margin-top: 65px;
    max-width: 650px;
    animation: heroEntrance 1s .15s ease both;
}


@keyframes heroEntrance {

    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.hero h1 {
    font-size: clamp(42px,4.5vw,65px);
    line-height: 1.04;
    letter-spacing: -3px;
    color: var(--navy);
    font-weight: 900;
    margin-bottom: 22px;
}


    .hero h1 span {
        display: block;
        background: linear-gradient( 90deg, #0a9fa7, #16c8c0, #0d9fd2 );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        position: relative;
    }


        .hero h1 span::after {
            content: "";
            position: absolute;
            width: 90px;
            height: 5px;
            border-radius: 10px;
            left: 2px;
            bottom: -12px;
            background: linear-gradient( 90deg, var(--cyan), transparent );
            animation: underlinePulse 3s ease-in-out infinite;
        }


@keyframes underlinePulse {

    0%, 100% {
        width: 70px;
        opacity: .5;
    }

    50% {
        width: 130px;
        opacity: 1;
    }
}


.hero p {
    max-width: 550px;
    color: #6481a3;
    font-size: 17px;
    line-height: 1.75;
    margin-top: 30px;
}


/* =========================================================
                   CARACTERISTICAS
                ========================================================== */

.features {
    margin-top: 38px;
    display: flex;
    flex-direction: column;
    gap: 17px;
}


.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    padding: 5px 12px 5px 5px;
    border-radius: 18px;
    transition: .35s ease;
    animation: featureEntrance .8s ease both;
}


    .feature:nth-child(1) {
        animation-delay: .3s;
    }

    .feature:nth-child(2) {
        animation-delay: .45s;
    }

    .feature:nth-child(3) {
        animation-delay: .6s;
    }


@keyframes featureEntrance {

    from {
        opacity: 0;
        transform: translateX(-25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.feature:hover {
    transform: translateX(8px);
    background: rgba(255,255,255,.55);
    box-shadow: 0 10px 30px rgba(22,131,170,.08);
}


.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.95);
    color: #0abbb5;
    font-size: 19px;
    box-shadow: 0 9px 25px rgba(16,126,164,.12);
    transition: .35s ease;
}


.feature:hover .feature-icon {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 12px 28px rgba(13,190,183,.22);
}


.feature-text strong {
    display: block;
    color: #0b4b87;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 3px;
}


.feature-text span {
    color: #7b94ae;
    font-size: 12px;
}


/* =========================================================
                   PLUS
                ========================================================== */

.medical-plus {
    position: absolute;
    right: 145px;
    top: 170px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17,143,214,.10);
    color: rgba(13,133,215,.13);
    font-size: 42px;
    z-index: 10;
    animation: plusFloat 5s ease-in-out infinite;
}


@keyframes plusFloat {

    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}


/* =========================================================
                   ONDAS
                ========================================================== */

.wave {
    position: absolute;
    bottom: -100px;
    left: -10%;
    width: 125%;
    height: 280px;
    border-radius: 50% 50% 0 0;
    z-index: 3;
    transform: rotate(-3deg);
    animation: waveMove 8s ease-in-out infinite;
}


.wave-1 {
    background: linear-gradient( 135deg, rgba(90,222,199,.58), rgba(27,164,232,.58) );
}


.wave-2 {
    bottom: -135px;
    left: -15%;
    opacity: .8;
    background: linear-gradient( 135deg, rgba(16,144,229,.55), rgba(42,212,193,.50) );
    animation-delay: -2s;
}


@keyframes waveMove {

    0%, 100% {
        transform: rotate(-3deg) translateX(0);
    }

    50% {
        transform: rotate(-2deg) translateX(18px);
    }
}


/* =========================================================
                   STATUS
                ========================================================== */

.status-card {
    position: absolute;
    z-index: 12;
    left: 36%;
    bottom: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 17px;
    box-shadow: 0 18px 40px rgba(26,100,138,.16);
    animation: statusFloat 4s ease-in-out infinite;
}


.status-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4faf5;
    color: #0ac1ad;
    font-size: 14px;
}


.status-text strong {
    display: block;
    color: #174f7d;
    font-size: 12px;
    margin-bottom: 2px;
}


.status-text span {
    color: #93a5b7;
    font-size: 10px;
}


.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #17c8a9;
    box-shadow: 0 0 0 5px rgba(23,200,169,.08);
    animation: dotPulse 2s infinite;
}


@keyframes statusFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


@keyframes dotPulse {

    0%, 100% {
        box-shadow: 0 0 0 4px rgba(23,200,169,.08);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(23,200,169,.02);
    }
}


/* =========================================================
                   LOGIN PANEL
                ========================================================== */

.login-panel {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 70px;
    overflow: hidden;
}


    .login-panel::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 180px;
        height: 180px;
        background: radial-gradient( circle, rgba(21,198,194,.08), transparent 70% );
        pointer-events: none;
    }


    /* =========================================================
                   BRILLO LOGIN
                ========================================================== */

    .login-panel::after {
        content: "";
        position: absolute;
        top: -80%;
        left: -80%;
        width: 42%;
        height: 260%;
        pointer-events: none;
        z-index: 5;
        transform: rotate(25deg);
        background: linear-gradient( 90deg, transparent 0%, transparent 25%, rgba(255,255,255,.02) 38%, rgba(255,255,255,.90) 50%, rgba(218,248,255,.16) 56%, transparent 72%, transparent 100% );
        filter: blur(1px);
        opacity: 0;
        animation: loginPanelShine 8s ease-in-out infinite;
        animation-delay: -3.5s;
    }


@keyframes loginPanelShine {

    0% {
        left: -80%;
        opacity: 0;
    }

    10% {
        opacity: .08;
    }

    23% {
        opacity: .60;
    }

    39% {
        left: 135%;
        opacity: .18;
    }

    46% {
        left: 155%;
        opacity: 0;
    }

    100% {
        left: 155%;
        opacity: 0;
    }
}


/* =========================================================
                   CONTENEDOR LOGIN
                ========================================================== */

.login-container {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 10;
    animation: loginEntrance 1s .2s ease both;
}


@keyframes loginEntrance {

    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
                   ICONO
                ========================================================== */

.security-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0875d7;
    font-size: 30px;
    background: linear-gradient( 145deg, #ffffff, #f4faff );
    box-shadow: 0 14px 35px rgba(24,101,160,.10);
    border: 1px solid #edf5fb;
    position: relative;
    animation: securityFloat 4s ease-in-out infinite;
}


    .security-icon::before {
        content: "";
        position: absolute;
        inset: -9px;
        border-radius: 50%;
        border: 1px solid rgba(10,130,214,.09);
        animation: securityRing 3s ease-in-out infinite;
    }


@keyframes securityFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}


@keyframes securityRing {

    0%, 100% {
        transform: scale(1);
        opacity: .4;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}


/* =========================================================
                   HEADER
                ========================================================== */

.login-header {
    text-align: center;
    margin-bottom: 38px;
}


    .login-header h2 {
        color: #083d78;
        font-size: 40px;
        font-weight: 900;
        letter-spacing: -1.8px;
        margin-bottom: 7px;
    }


    .login-header p {
        color: #7b91ac;
        font-size: 15px;
    }


/* =========================================================
                   FORM
                ========================================================== */

.form-group {
    margin-bottom: 23px;
    position: relative;
}


.form-label {
    display: block;
    color: #143f70;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 9px;
}


.input-wrapper {
    position: relative;
}


.form-input {
    width: 100%;
    height: 62px;
    border: 1px solid #d8e6f3;
    border-radius: 14px;
    background: #fbfdff;
    color: #123f72;
    padding: 0 52px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: .3s ease;
}


    .form-input::placeholder {
        color: #9caec1;
    }


    .form-input:hover {
        border-color: #bdd3e7;
    }


    .form-input:focus {
        background: #ffffff;
        border-color: #1191dd;
        box-shadow: 0 0 0 4px rgba(17,145,221,.08);
    }


.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #91a6bb;
    font-size: 17px;
    pointer-events: none;
    transition: .3s ease;
}


.form-input:focus + .input-icon {
    color: #087bd8;
    transform: translateY(-50%) scale(1.08);
}


/* =========================================================
                   PASSWORD
                ========================================================== */

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #8ba0b5;
    cursor: pointer;
    font-size: 16px;
    transition: .25s;
}


    .password-toggle:hover {
        color: #087bd8;
        transform: translateY(-50%) scale(1.1);
    }


/* =========================================================
                   CONSULTORIO
                ========================================================== */

.consultorio-wrapper {
    position: relative;
}


.consultorio-select {
    width: 100%;
    height: 62px;
    border: 1px solid #d8e6f3;
    border-radius: 14px;
    background: linear-gradient( 145deg, #fbfdff, #f7fbff );
    color: #123f72;
    padding: 0 50px 0 52px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: .3s ease;
    box-shadow: 0 5px 18px rgba(30,100,150,.03);
}


    .consultorio-select:hover {
        border-color: #bdd3e7;
        background: #ffffff;
    }


    .consultorio-select:focus {
        background: #ffffff;
        border-color: #1191dd;
        box-shadow: 0 0 0 4px rgba(17,145,221,.08);
    }


.consultorio-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #91a6bb;
    font-size: 17px;
    pointer-events: none;
    transition: .3s ease;
}


.consultorio-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f9ab5;
    font-size: 14px;
    pointer-events: none;
    transition: .3s ease;
}


.consultorio-select:focus ~ .consultorio-icon {
    color: #087bd8;
    transform: translateY(-50%) scale(1.08);
}


.consultorio-select:focus ~ .consultorio-arrow {
    color: #087bd8;
    transform: translateY(-50%) rotate(180deg);
}


/* =========================================================
                   OPCIONES DEL SELECT
                ========================================================== */

.consultorio-select option {
    color: #123f72;
    background: white;
    padding: 10px;
}


/* =========================================================
                   ALERT
                ========================================================== */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    margin-bottom: 20px;
    border-radius: 11px;
    background: #fff3f3;
    border: 1px solid #ffd6d6;
    color: #cb4c4c;
    font-size: 13px;
}


/* =========================================================
                   OPCIONES
                ========================================================== */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 28px;
}


.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #466687;
    font-size: 13px;
    cursor: pointer;
}


    .remember input {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 1px solid #c8d8e7;
        border-radius: 6px;
        background: white;
        cursor: pointer;
        position: relative;
        transition: .25s;
    }


        .remember input:checked {
            background: #0876d7;
            border-color: #0876d7;
        }


            .remember input:checked::after {
                content: "✓";
                position: absolute;
                color: white;
                font-size: 12px;
                font-weight: 800;
                left: 4px;
                top: 1px;
            }


.forgot {
    color: #08aaa9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .25s;
}


    .forgot:hover {
        color: #0876d7;
    }


/* =========================================================
                   BOTON
                ========================================================== */

.login-button {
    width: 100%;
    height: 63px;
    border: none;
    border-radius: 14px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient( 100deg, #0969d3, #078bdd 48%, #10bfb5 );
    box-shadow: 0 15px 30px rgba(15,124,213,.20);
    transition: .3s ease;
}


    .login-button::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 70%;
        height: 100%;
        transform: skewX(-20deg);
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.40), transparent );
        animation: buttonShine 4s ease-in-out infinite;
    }


@keyframes buttonShine {

    0% {
        left: -120%;
    }

    30% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}


.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15,124,213,.28);
}


.login-button:active {
    transform: translateY(-1px);
}


.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    position: relative;
    z-index: 2;
}


.button-arrow {
    transition: .3s ease;
}


.login-button:hover .button-arrow {
    transform: translateX(6px);
}


/* =========================================================
                   DIVISOR
                ========================================================== */

.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 32px 0 25px;
}


    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e3ebf3;
    }


.divider-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6fbff;
    border: 1px solid #e2edf5;
    color: #8ba2b8;
    font-size: 13px;
}


/* =========================================================
                   CONTACTO
                ========================================================== */

.contact {
    text-align: center;
    color: #7188a2;
    font-size: 13px;
}


    .contact a {
        color: #0aaead;
        font-weight: 800;
        text-decoration: none;
        margin-left: 4px;
        transition: .25s;
    }


        .contact a:hover {
            color: #0878d7;
        }


/* =========================================================
                   FOOTER
                ========================================================== */

.security-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    margin-top: 34px;
    color: #91a3b6;
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
}


    .security-footer i {
        color: #10bdb7;
        font-size: 20px;
    }


/* =========================================================
                   RESPONSIVE
                ========================================================== */

@media (max-width:1150px) {

    body {
        padding: 18px;
    }

    .medical-login {
        grid-template-columns: 1fr 1fr;
        min-height: 720px;
    }

    .brand-panel {
        min-height: 720px;
    }

    .brand-content {
        padding: 45px;
    }

    .hero {
        margin-top: 50px;
    }

        .hero h1 {
            font-size: 47px;
        }

    .doctor-watermark {
        width: 80%;
        right: -10%;
    }

    .login-panel {
        padding: 40px;
    }
}


/* =========================================================
                   TABLET
                ========================================================== */

@media (max-width:850px) {

    body {
        padding: 0;
        align-items: flex-start;
    }


    .medical-login {
        width: 100%;
        max-width: 680px;
        grid-template-columns: 1fr;
        margin: 20px auto;
        border-radius: 26px;
        min-height: auto;
    }


    .brand-panel {
        min-height: 590px;
        border-radius: 26px 26px 0 0;
    }


    .brand-content {
        padding: 40px;
    }


    .hero {
        margin-top: 48px;
    }


        .hero h1 {
            font-size: 48px;
        }


    .doctor-watermark {
        width: 72%;
        height: 650px;
        right: -2%;
        bottom: 5px;
        opacity: .20;
    }


    .status-card {
        left: 30%;
        bottom: 55px;
    }


    .login-panel {
        padding: 55px 45px;
    }
}


/* =========================================================
                   MOVIL
                ========================================================== */

@media (max-width:560px) {

    body {
        padding: 0;
        background: #f3faff;
    }


    .medical-login {
        margin: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }


        .medical-login::after {
            border-radius: 0;
        }


    .brand-panel {
        min-height: 510px;
        border-radius: 0 0 30px 30px;
    }


    .brand-content {
        padding: 30px 25px;
    }


    .brand-logo {
        width: 250px;
        max-width: 85%;
    }


    .hero {
        margin-top: 40px;
    }


        .hero h1 {
            font-size: 37px;
            letter-spacing: -1.8px;
        }


        .hero p {
            font-size: 14px;
            line-height: 1.6;
            max-width: 330px;
        }


    .features {
        margin-top: 25px;
        gap: 10px;
    }


    .feature-icon {
        width: 43px;
        height: 43px;
        min-width: 43px;
        font-size: 15px;
    }


    .feature-text strong {
        font-size: 12px;
    }


    .feature-text span {
        font-size: 10px;
    }


    .doctor-watermark {
        width: 88%;
        height: 560px;
        right: -12%;
        bottom: 0;
        opacity: .17;
    }


    .medical-plus {
        width: 55px;
        height: 55px;
        font-size: 28px;
        right: 35px;
        top: 100px;
    }


    .status-card {
        left: 24%;
        bottom: 35px;
        transform: scale(.88);
    }


    .wave {
        height: 190px;
        bottom: -75px;
    }


    .login-panel {
        padding: 45px 25px 35px;
    }


    .security-icon {
        width: 70px;
        height: 70px;
        font-size: 25px;
    }


    .login-header {
        margin-bottom: 30px;
    }


        .login-header h2 {
            font-size: 32px;
        }


        .login-header p {
            font-size: 13px;
        }


    .form-input,
    .consultorio-select {
        height: 57px;
    }


    .login-button {
        height: 58px;
    }


    .form-options {
        gap: 12px;
    }
}


/* =========================================================
                   MOVIL PEQUEÑO
                ========================================================== */

@media (max-width:380px) {

    .brand-panel {
        min-height: 475px;
    }


    .brand-content {
        padding: 25px 20px;
    }


    .hero h1 {
        font-size: 32px;
    }


    .hero p {
        font-size: 13px;
    }


    .doctor-watermark {
        width: 75%;
    }


    .status-card {
        left: 18%;
        transform: scale(.78);
    }


    .login-panel {
        padding: 38px 20px 30px;
    }


    .login-header h2 {
        font-size: 29px;
    }


    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
                   REDUCIR ANIMACIONES
                ========================================================== */

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
                   CÉDULA PROFESIONAL
                ========================================================== */

.cedula-group {
    position: relative;
}


/* CONTENEDOR */

.cedula-input-wrapper {
    position: relative;
    width: 100%;
}


/* INPUT */

.cedula-input {
    height: 62px;
    padding: 0 58px 0 56px !important;
    border: 1px solid #d8e6f3;
    border-radius: 15px;
    background: linear-gradient( 145deg, #ffffff 0%, #f8fcff 100% );
    color: #123f72;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    box-shadow: 0 6px 20px rgba(30, 100, 150, .04), inset 0 1px 0 rgba(255,255,255,.90);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease, background .3s ease;
}


    /* PLACEHOLDER */

    .cedula-input::placeholder {
        color: #a4b5c6;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: .5px;
    }


    /* HOVER */

    .cedula-input:hover {
        border-color: #b9d5ea;
        box-shadow: 0 8px 24px rgba(30, 100, 150, .07), inset 0 1px 0 rgba(255,255,255,.95);
    }


    /* FOCUS */

    .cedula-input:focus {
        background: #ffffff;
        border-color: #0a8bdd;
        box-shadow: 0 0 0 4px rgba(10,139,221,.09), 0 12px 30px rgba(10,139,221,.10);
        transform: translateY(-1px);
    }


/* =========================================================
                   ICONO CÉDULA
                ========================================================== */

.cedula-icon {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    text-align: center;
    color: #91a6bb;
    font-size: 18px;
    pointer-events: none;
    z-index: 3;
    transition: color .3s ease, transform .3s ease;
}


.cedula-input:focus ~ .cedula-icon {
    color: #087bd8;
    transform: translateY(-50%) scale(1.08);
}


/* =========================================================
                   ICONO DE SEGURIDAD
                ========================================================== */

.cedula-status {
    position: absolute;
    right: 17px;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf7ff;
    border: 1px solid #dceefa;
    color: #65a2d2;
    font-size: 13px;
    pointer-events: none;
    transition: .3s ease;
}


.cedula-input:focus ~ .cedula-status {
    color: #087bd8;
    background: #eaf6ff;
    border-color: #cce8fa;
    box-shadow: 0 5px 15px rgba(8,123,216,.10);
}


/* =========================================================
                   AYUDA DEL FORMATO
                ========================================================== */

.cedula-help {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding-left: 4px;
    color: #8ca2b8;
    font-size: 11px;
    font-weight: 500;
    transition: color .3s ease;
}


    .cedula-help i {
        color: #83b2d5;
        font-size: 11px;
        transition: color .3s ease, transform .3s ease;
    }


.cedula-input:focus ~ .cedula-status + .cedula-help {
    color: #668ba9;
}


.cedula-help:hover i {
    color: #087bd8;
    transform: scale(1.1);
}


/* =========================================================
                   ESTADO VÁLIDO
                ========================================================== */

.cedula-input.cedula-valida {
    border-color: #16b89a;
    box-shadow: 0 0 0 4px rgba(22,184,154,.07), 0 10px 28px rgba(22,184,154,.09);
}


    .cedula-input.cedula-valida ~ .cedula-status {
        color: #0aa98d;
        background: #e9faf6;
        border-color: #c9f0e6;
    }


        .cedula-input.cedula-valida ~ .cedula-status i::before {
            content: "\f00c";
        }


/* =========================================================
                   ESTADO ERROR
                ========================================================== */

.cedula-input.cedula-invalida {
    border-color: #e15b64;
    box-shadow: 0 0 0 4px rgba(225,91,100,.07), 0 10px 25px rgba(225,91,100,.08);
}


    .cedula-input.cedula-invalida ~ .cedula-status {
        color: #d94f5b;
        background: #fff1f2;
        border-color: #ffd7da;
    }


/* =========================================================
                   ANIMACIÓN AL COMPLETAR
                ========================================================== */

@keyframes cedulaComplete {

    0% {
        transform: translateY(-50%) scale(.85);
        opacity: .5;
    }

    60% {
        transform: translateY(-50%) scale(1.15);
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}


.cedula-input.cedula-valida ~ .cedula-status {
    animation: cedulaComplete .35s ease;
}


/* =========================================================
                   RESPONSIVE
                ========================================================== */

@media (max-width:560px) {

    .cedula-input {
        height: 57px;
        padding-left: 52px !important;
        padding-right: 52px !important;
        font-size: 15px;
    }

    .cedula-icon {
        left: 17px;
        font-size: 17px;
    }

    .cedula-status {
        right: 15px;
        width: 28px;
        height: 28px;
    }

    .cedula-help {
        font-size: 10px;
    }
}