:root {
    --navy-950: #06182e;
    --navy-900: #082448;
    --navy-800: #0a315d;

    --blue-700: #10569b;
    --blue-600: #1769b0;
    --blue-500: #1f78c8;

    --green-600: #009f7a;
    --green-500: #08ad83;
    --green-400: #2fc398;

    --text-primary: #152238;
    --text-secondary: #718096;

    --border: #d9e2ec;
    --background: #f4f7fb;
    --white: #ffffff;

    --card-radius: 30px;
    --input-radius: 13px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body.login-page {
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--text-primary);
    background: #f4f7fb;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

button,
input {
    font: inherit;
}


/* =========================================================
   LAYOUT PRINCIPAL
========================================================= */

.login-layout {
    display: grid;

    grid-template-columns:
        minmax(480px, 1.08fr)
        minmax(480px, .92fr);

    min-height: 100vh;
}


/* =========================================================
   PAINEL ESQUERDO
========================================================= */

.login-showcase {
    position: relative;
    isolation: isolate;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding:
        40px
        clamp(52px, 6vw, 92px);

    color: #ffffff;

    /*
       Overlay reduzido para a fotografia ficar
       muito mais aparente.
    */
    background:

        linear-gradient(
            90deg,
            rgba(5, 20, 38, .55) 0%,
            rgba(5, 29, 52, .46) 45%,
            rgba(5, 42, 73, .50) 100%
        ),

        url("../image/seimed_bg.jpg")
        center center /
        cover
        no-repeat;
}


/* Luz verde bem discreta */

.login-showcase::before {
    content: "";

    position: absolute;

    z-index: -1;

    width: 600px;
    height: 600px;

    top: -280px;
    right: -230px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(8, 173, 131, .09),
            transparent 70%
        );

    pointer-events: none;
}


/* Luz azul discreta */

.login-showcase::after {
    content: "";

    position: absolute;

    z-index: -1;

    width: 680px;
    height: 680px;

    bottom: -350px;
    left: -280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(31, 120, 200, .12),
            transparent 70%
        );

    pointer-events: none;
}


/* Grid quase imperceptível */

.login-showcase-pattern {
    position: absolute;

    z-index: -1;

    inset: 0;

    opacity: .035;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(255,255,255,.10) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.10) 1px,
            transparent 1px
        );

    background-size:
        48px 48px;
}


.login-showcase-content {
    position: relative;

    z-index: 3;

    width: 100%;

    max-width: 680px;
}


/* =========================================================
   BADGE ESQUERDO
========================================================= */

.showcase-badge {
    display: inline-flex;

    align-items: center;

    min-height: 34px;

    margin-bottom: 24px;

    padding:
        0 14px;

    border:
        1px solid
        rgba(255,255,255,.24);

    border-radius: 999px;

    background:
        rgba(4, 21, 39, .20);

    color:
        rgba(255,255,255,.92);

    backdrop-filter:
        blur(8px);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .13em;
}


/* =========================================================
   TÍTULO ESQUERDO
========================================================= */

.login-showcase h1 {
    max-width: 630px;

    margin: 0;

    color: #ffffff;

    font-size:
        clamp(40px, 4.4vw, 64px);

    font-weight: 800;

    line-height: 1.02;

    letter-spacing: -.045em;

    text-shadow:
        0 2px 18px
        rgba(0,0,0,.20);
}


.login-showcase h1::after {
    content: "";

    display: block;

    width: 62px;
    height: 5px;

    margin-top: 27px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            var(--green-500),
            var(--green-400)
        );
}


.showcase-description {
    max-width: 570px;

    margin:
        27px 0 0;

    color:
        rgba(255,255,255,.90);

    font-size: 16px;

    line-height: 1.7;

    text-shadow:
        0 1px 12px
        rgba(0,0,0,.20);
}


/* =========================================================
   ITENS ESQUERDOS
========================================================= */

.showcase-items {
    display: grid;

    gap: 13px;

    margin-top: 32px;
}


.showcase-item {
    display: flex;

    align-items: center;

    gap: 13px;

    color:
        rgba(255,255,255,.96);

    font-size: 14px;

    font-weight: 600;

    text-shadow:
        0 1px 10px
        rgba(0,0,0,.18);
}


.showcase-item span {
    flex:
        0 0 auto;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--green-400);

    box-shadow:
        0 0 0 6px
        rgba(47,195,152,.12);
}


/* =========================================================
   PAINEL DIREITO
========================================================= */

.login-area {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        clamp(32px, 5vw, 76px);

    background:

        radial-gradient(
            circle at 92% 8%,
            rgba(25,105,176,.10),
            transparent 36%
        ),

        radial-gradient(
            circle at 8% 92%,
            rgba(8,173,131,.07),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #e8eef5 0%,
            #edf3f8 50%,
            #e4ebf2 100%
        );
}


/* =========================================================
   CARD DO LOGIN
========================================================= */

.login-card {
    position: relative;

    isolation: isolate;

    width:
        min(100%, 510px);

    padding:
        38px 48px 42px;

    background:
        #ffffff;

    border:
        1px solid
        #c9d4df;

    border-radius:
        var(--card-radius);

    box-shadow:

        0 2px 5px
        rgba(15,35,60,.08),

        0 18px 42px
        rgba(15,35,60,.13),

        0 40px 85px
        rgba(15,35,60,.08);
}


.login-card::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    border-radius:
        inherit;

    pointer-events:
        none;

    box-shadow:

        inset 0 1px 0
        rgba(255,255,255,.95),

        inset 0 0 0 1px
        rgba(255,255,255,.45);
}


/* =========================================================
   LOGO OFICIAL SEIMED
========================================================= */

.seimed-brand {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    margin-bottom: 4px;
}


.seimed-logo-frame {
    position: relative;

    width: 280px;
    height: 195px;

    overflow: hidden;

    flex:
        0 0 auto;
}


.seimed-logo {
    position: absolute;

    top: 50%;
    left: 50%;

    display: block;

    width: 330px;
    height: auto;

    max-width: none;

    transform:
        translate(-50%, -50%);
}


/* =========================================================
   TÍTULO DO LOGIN
========================================================= */

.login-title {
    margin-top: 3px;
}


.login-secure {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding:
        0 11px;

    border-radius:
        999px;

    background:
        rgba(8,173,131,.09);

    color:
        #00886a;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .08em;
}


.login-title h2 {
    margin:
        16px 0 8px;

    color:
        #101a2b;

    font-size:
        clamp(30px, 3vw, 39px);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -.04em;
}


.login-title p {
    margin: 0;

    color:
        var(--text-secondary);

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.login-form {
    display: grid;

    gap: 20px;

    margin-top: 32px;
}


.form-group {
    display: grid;

    gap: 8px;
}


.form-group label {
    color:
        #35445a;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   INPUTS
========================================================= */

.input-container {
    position: relative;
}


.input-icon {
    position: absolute;

    top: 50%;
    left: 16px;

    width: 20px;
    height: 20px;

    transform:
        translateY(-50%);

    color:
        #8a98aa;

    pointer-events: none;
}


.input-icon svg {
    display: block;

    width: 100%;
    height: 100%;
}


.input-container input {
    width: 100%;
    height: 55px;

    padding:
        0 18px
        0 48px;

    outline: none;

    border:
        1px solid
        #d2dce7;

    border-radius:
        var(--input-radius);

    background:
        #ffffff;

    color:
        var(--text-primary);

    font-size: 15px;

    box-shadow:
        0 1px 2px
        rgba(15,35,60,.025);

    transition:

        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.input-container input::placeholder {
    color:
        #a4afbc;
}


.input-container input:hover {
    border-color:
        #c0ccd9;
}


.input-container input:focus {
    border-color:
        #1769b0;

    background:
        #ffffff;

    box-shadow:

        0 0 0 4px
        rgba(23,105,176,.08),

        0 2px 5px
        rgba(15,35,60,.05);
}


/* =========================================================
   AUTOFILL
========================================================= */

.input-container input:-webkit-autofill,
.input-container input:-webkit-autofill:hover,
.input-container input:-webkit-autofill:focus,
.input-container input:-webkit-autofill:active {

    -webkit-box-shadow:
        0 0 0 1000px
        #ffffff inset !important;

    -webkit-text-fill-color:
        var(--text-primary) !important;

    caret-color:
        var(--text-primary);

    transition:
        background-color
        9999s ease-out 0s;
}


/* =========================================================
   BOTÃO ENTRAR
========================================================= */

.login-button {
    width: 100%;

    min-height: 57px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 4px;

    padding:
        0 22px;

    border: 0;

    border-radius:
        var(--input-radius);

    outline: none;

    background:
        linear-gradient(
            135deg,
            #0b3d78,
            #1769b0
        );

    color:
        #ffffff;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 26px
        rgba(20,93,160,.20);

    transition:

        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}


.login-button svg {
    width: 19px;
    height: 19px;

    transition:
        transform .18s ease;
}


.login-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 16px 32px
        rgba(20,93,160,.26);

    filter:
        saturate(1.05);
}


.login-button:hover svg {
    transform:
        translateX(3px);
}


.login-button:focus-visible {
    box-shadow:

        0 0 0 4px
        rgba(16,86,155,.14),

        0 16px 32px
        rgba(20,93,160,.25);
}


.login-button:active {
    transform:
        translateY(0);
}


/* =========================================================
   RODAPÉ DO CARD
========================================================= */

.login-card-footer {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 29px;

    padding-top: 22px;

    border-top:
        1px solid
        #e6ebf0;

    color:
        #93a0af;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .065em;

    text-transform: uppercase;
}


.online-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--green-400);

    box-shadow:
        0 0 0 4px
        rgba(47,195,152,.10);
}


/* =========================================================
   NOTEBOOK / TABLET
========================================================= */

@media (max-width: 1050px) {

    .login-layout {
        grid-template-columns:
            minmax(340px, .8fr)
            minmax(420px, 1.2fr);
    }


    .login-showcase {
        padding:
            40px 48px;
    }


    .login-showcase h1 {
        font-size:
            47px;
    }


    .login-card {
        padding:
            36px 40px 40px;
    }


    .seimed-logo-frame {
        width: 260px;
        height: 185px;
    }


    .seimed-logo {
        width: 315px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    body.login-page {
        background:
            #eef3f8;
    }


    .login-layout {
        display: block;
    }


    .login-showcase {
        min-height:
            260px;

        align-items:
            flex-start;

        padding:
            34px 24px 86px;

        background:

            linear-gradient(
                90deg,
                rgba(5,20,38,.55) 0%,
                rgba(5,29,52,.46) 45%,
                rgba(5,42,73,.50) 100%
            ),

            url("../image/seimed_bg.jpg")
            center center /
            cover
            no-repeat;
    }


    .showcase-badge {
        margin-bottom:
            17px;
    }


    .login-showcase h1 {
        max-width:
            500px;

        font-size:
            36px;
    }


    .login-showcase h1::after {
        width: 54px;
        height: 4px;

        margin-top:
            18px;
    }


    .showcase-description,
    .showcase-items {
        display: none;
    }


    .login-area {
        position: relative;

        z-index: 10;

        min-height: auto;

        margin-top:
            -58px;

        padding:
            0 18px 34px;

        background:
            transparent;
    }


    .login-card {
        padding:
            29px 24px 31px;

        border-radius:
            24px;

        box-shadow:

            0 2px 5px
            rgba(15,35,60,.07),

            0 18px 45px
            rgba(15,35,60,.15);
    }


    .seimed-logo-frame {
        width:
            250px;

        height:
            175px;
    }


    .seimed-logo {
        width:
            300px;
    }


    .login-title {
        margin-top:
            2px;
    }


    .login-title h2 {
        font-size:
            31px;
    }

}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 430px) {

    .login-showcase {
        min-height:
            235px;
    }


    .login-showcase h1 {
        font-size:
            31px;
    }


    .login-card {
        padding:
            27px 20px 29px;
    }


    .seimed-logo-frame {
        width:
            225px;

        height:
            160px;
    }


    .seimed-logo {
        width:
            275px;
    }


    .input-container input {
        height:
            53px;
    }


    .login-button {
        min-height:
            55px;
    }

}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        transition:
            none !important;

        animation:
            none !important;

        scroll-behavior:
            auto !important;

    }

}