:root {
    --login-navy: #071936;
    --login-navy-soft: #0c2850;
    --login-blue: #123bc8;
    --login-blue-dark: #092768;
    --login-green: #18d79c;
    --login-green-dark: #087c68;
    --login-text: #071936;
    --login-muted: #71809b;
    --login-border: #dde5ef;
    --login-surface: #ffffff;
    --login-background: #f7f9fd;
    --login-shadow: 0 28px 80px rgba(10, 31, 67, 0.12);
}

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

body.login-body {
    margin: 0;
    overflow-x: hidden;
    color: var(--login-text);
    background: var(--login-background);
}

.login-v2 {
    display: grid;
    grid-template-columns:
        minmax(580px, 1.03fr)
        minmax(580px, 0.97fr);
    min-height: 100vh;
}

/* LADO INSTITUCIONAL */

.login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    padding: 36px clamp(42px, 5vw, 78px) 30px;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 93%,
            rgba(30, 67, 225, 0.72),
            transparent 29%
        ),
        radial-gradient(
            circle at 83% 28%,
            rgba(17, 205, 164, 0.13),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #06142d 0%,
            #082044 52%,
            #071936 100%
        );
}

.login-showcase::before {
    position: absolute;
    top: -180px;
    left: 290px;
    width: 530px;
    height: 530px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.login-showcase::after {
    position: absolute;
    right: -180px;
    bottom: -210px;
    width: 620px;
    height: 620px;
    content: "";
    border: 1px solid rgba(43, 104, 255, 0.2);
    border-radius: 50%;
}

.showcase-top,
.showcase-content,
.showcase-footer {
    position: relative;
    z-index: 2;
}

.showcase-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.dental-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}






.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 15px 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.connection-dot-wrap {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(24, 215, 156, 0.12);
    box-shadow: 0 0 0 1px rgba(24, 215, 156, 0.25);
}

.connection-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--login-green);
    box-shadow:
        0 0 0 5px rgba(24, 215, 156, 0.11),
        0 0 16px rgba(24, 215, 156, 0.7);
}

.connection-copy strong,
.connection-copy span {
    display: block;
}

.connection-copy strong {
    font-size: 11px;
}

.connection-copy span {
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.showcase-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 30px;
}

.showcase-kicker {
    margin-bottom: 22px;
    color: #31e7b2;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.showcase-title {
    max-width: 690px;
    margin: 0;
    font-size: clamp(44px, 4.3vw, 72px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.showcase-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.showcase-card {
    position: relative;
    min-height: 268px;
    overflow: hidden;
    padding: 24px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 21px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(45, 92, 173, 0.14)
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.06),
        0 18px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
}

.showcase-card.featured {
    border-color: rgba(24, 215, 156, 0.44);
    background:
        linear-gradient(
            145deg,
            rgba(24, 215, 156, 0.18),
            rgba(31, 73, 171, 0.23)
        );
}

.showcase-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.showcase-card-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    color: var(--login-green);
    border-radius: 14px;
    background: rgba(24, 215, 156, 0.15);
}

.showcase-card-icon svg {
    width: 23px;
    height: 23px;
}

.showcase-tag {
    padding: 7px 10px;
    color: #b8ffe9;
    border: 1px solid rgba(24, 215, 156, 0.16);
    border-radius: 999px;
    background: rgba(24, 215, 156, 0.12);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.showcase-tag.attention {
    color: #ffe58d;
    border-color: rgba(255, 213, 70, 0.19);
    background: rgba(255, 194, 31, 0.13);
}

.showcase-tag.orders {
    color: #c7d8ff;
    border-color: rgba(89, 135, 255, 0.22);
    background: rgba(65, 109, 225, 0.18);
}

.showcase-card h3 {
    margin: 22px 0 11px;
    font-size: 21px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.showcase-card p {
    min-height: 68px;
    margin: 0;
    color: rgba(233, 240, 253, 0.68);
    font-size: 13px;
    line-height: 1.55;
}

.showcase-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 17px;
    padding-top: 14px;
    color: rgba(255, 255, 255, 0.66);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.showcase-mini-dots {
    display: flex;
    gap: 5px;
}

.showcase-mini-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--login-green);
}

.showcase-highlight {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 17px;
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(61, 122, 255, 0.25);
    border-radius: 20px;
    background:
        linear-gradient(
            105deg,
            rgba(24, 215, 156, 0.14),
            rgba(38, 78, 166, 0.42)
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    color: var(--login-green);
    border-radius: 15px;
    background: rgba(24, 215, 156, 0.13);
    box-shadow: 0 0 0 7px rgba(24, 215, 156, 0.035);
}

.highlight-copy small {
    display: block;
    margin-bottom: 5px;
    color: #2af0b6;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.highlight-copy strong {
    display: block;
    font-size: 17px;
}

.highlight-copy p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.highlight-score {
    color: #ffe15a;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.showcase-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding-top: 22px;
}

.showcase-footer strong,
.showcase-footer span {
    display: block;
}

.showcase-footer strong {
    font-size: 12px;
}

.showcase-footer span {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.showcase-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    color: rgba(156, 188, 255, 0.75);
    font-size: 10px;
}

.showcase-footer-links span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.showcase-footer-links span:not(:last-child)::after {
    width: 4px;
    height: 4px;
    content: "";
    border-radius: 50%;
    background: var(--login-green);
}

/* LADO DO FORMULÁRIO */

.login-access {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 42px 48px;
    background:
        radial-gradient(
            circle at 82% 4%,
            rgba(41, 185, 192, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 40% 70%,
            rgba(26, 73, 190, 0.045),
            transparent 30%
        ),
        #f8fafc;
}

.login-access::before {
    position: absolute;
    top: 50px;
    right: 60px;
    width: 255px;
    height: 255px;
    content: "";
    opacity: 0.22;
    background-image: radial-gradient(
        rgba(18, 59, 200, 0.34) 1px,
        transparent 1px
    );
    background-size: 12px 12px;
    mask-image: radial-gradient(circle, #000, transparent 72%);
}

.login-access-inner {
    position: relative;
    z-index: 2;
    width: min(100%, 570px);
}




.login-access-title {
    margin: 0;
    text-align: center;
    font-size: clamp(37px, 3vw, 53px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.login-access-description {
    max-width: 520px;
    margin: 15px auto 30px;
    color: var(--login-muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.65;
}

.access-card {
    padding: 27px 29px 23px;
    border: 1px solid rgba(218, 227, 238, 0.85);
    border-radius: 27px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(18px);
}

.access-date-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ebeff5;
}

.access-date {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.date-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #2447a4;
    border: 1px solid #e1e7f1;
    border-radius: 13px;
    background: #f7f9fe;
}

.date-icon svg {
    width: 19px;
    height: 19px;
}

.access-date strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.access-clock {
    min-width: 145px;
    padding-left: 20px;
    border-left: 1px solid #e7ebf2;
}

.access-clock span {
    display: block;
    margin-bottom: 4px;
    color: #8390aa;
    font-size: 9px;
    font-weight: 900;
}

.access-clock strong {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 29px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.clock-live {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--login-green);
    box-shadow: 0 0 0 6px rgba(24, 215, 156, 0.12);
}

.login-alert {
    margin: 18px 0 0;
    padding: 13px 15px;
    color: #932b38;
    border: 1px solid #ffd4da;
    border-radius: 12px;
    background: #fff1f3;
    font-size: 12px;
    font-weight: 700;
}

.access-form {
    margin-top: 19px;
}

.access-field {
    margin-bottom: 16px;
}

.access-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
}

.access-label-row label {
    color: #071936;
    font-size: 11px;
    font-weight: 900;
}

.access-label-row span {
    color: #8995ac;
    font-size: 9px;
    font-weight: 800;
}

.access-input-wrap {
    position: relative;
}

.access-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #93a2bd;
    pointer-events: none;
    transform: translateY(-50%);
}

.access-input-icon svg {
    width: 17px;
    height: 17px;
}

.access-control {
    width: 100%;
    height: 51px;
    padding: 0 108px 0 48px;
    color: #0a1a37;
    outline: none;
    border: 1px solid #dce4ef;
    border-radius: 13px;
    background: #fff;
    font-size: 13px;
    font-weight: 650;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.access-control::placeholder {
    color: #a4afc1;
    font-weight: 600;
}

.access-control:focus {
    border-color: #315ce7;
    box-shadow: 0 0 0 4px rgba(49, 92, 231, 0.1);
}

.access-password-button {
    position: absolute;
    top: 50%;
    right: 9px;
    min-width: 70px;
    height: 36px;
    padding: 0 13px;
    color: #2447a4;
    border: 1px solid #e1e7f1;
    border-radius: 10px;
    background: #f7f9fe;
    font-size: 10px;
    font-weight: 900;
    transform: translateY(-50%);
}

.access-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    color: #fff;
    border: 0;
    border-radius: 13px;
    background:
        linear-gradient(
            100deg,
            #173dd2 0%,
            #0b2e83 62%,
            #07255f 100%
        );
    box-shadow: 0 15px 30px rgba(22, 60, 184, 0.22);
    font-size: 14px;
    font-weight: 900;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.access-submit:hover {
    box-shadow: 0 18px 38px rgba(22, 60, 184, 0.3);
    transform: translateY(-1px);
}

.access-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.access-submit svg {
    width: 19px;
    height: 19px;
}

.access-helper-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.access-helper-row a {
    color: #2447a4;
    font-size: 10px;
    font-weight: 900;
}

.access-validation {
    margin-top: 15px;
    color: #8c98ae;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
}

.access-security {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #e1e7f0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.83);
    box-shadow: 0 18px 50px rgba(31, 51, 90, 0.08);
}

.security-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
}

.security-item:not(:last-child) {
    border-right: 1px solid #e7ebf2;
}

.security-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #546d9f;
    border-radius: 12px;
    background: #f0f4ff;
}

.security-icon svg {
    width: 18px;
    height: 18px;
}

.security-item strong,
.security-item span {
    display: block;
}

.security-item strong {
    font-size: 10px;
}

.security-item span {
    margin-top: 3px;
    color: #78869f;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.35;
}

/* RESPONSIVO */

@media (max-width: 1250px) {
    .login-v2 {
        grid-template-columns: minmax(500px, 0.94fr) minmax(520px, 1.06fr);
    }

    .login-showcase {
        padding-right: 42px;
        padding-left: 42px;
    }

    .showcase-title {
        font-size: 49px;
    }

    .showcase-cards {
        gap: 12px;
    }

    .showcase-card {
        min-height: 255px;
        padding: 20px 17px;
    }

    .showcase-card h3 {
        font-size: 18px;
    }
}

@media (max-width: 1050px) {
    .login-v2 {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        display: none;
    }

    .login-access {
        padding: 42px 22px;
    }
}

@media (max-width: 620px) {
    .login-access {
        align-items: flex-start;
        padding: 25px 15px;
    }

    .login-access-inner {
        width: 100%;
    }

    .login-greeting {
        margin-bottom: 18px;
    }

    .login-access-title {
        font-size: 37px;
    }

    .login-access-description {
        margin-bottom: 23px;
        font-size: 13px;
    }

    .access-card {
        padding: 21px 17px;
        border-radius: 21px;
    }

    .access-date-row {
        grid-template-columns: 1fr;
    }

    .access-clock {
        min-width: 0;
        padding: 15px 0 0;
        border-top: 1px solid #e7ebf2;
        border-left: 0;
    }

    .access-security {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .security-item {
        padding: 0;
    }

    .security-item:not(:last-child) {
        padding-bottom: 13px;
        border-right: 0;
        border-bottom: 1px solid #e7ebf2;
    }
}

/* AJUSTES FINOS — LOGO SVG E REMOÇÃO DA SAUDAÇÃO */

.dental-logo {
    display: inline-flex;
    align-items: center;
    width: 210px;
    max-width: 45%;
}

.dental-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.login-access-inner {
    padding-top: 0;
}

.login-access-title {
    margin-top: 0;
}

@media (max-width: 1250px) {
    .dental-logo {
        width: 185px;
    }
}

@media (max-width: 620px) {
    .dental-logo {
        width: 170px;
        max-width: 60%;
    }
}

/* AJUSTE FINO — HORA ATUAL MAIOR */

.access-clock {
    min-width: 175px;
}

.access-clock span {
    margin-bottom: 6px;
    font-size: 10px;
}

.access-clock strong {
    gap: 11px;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.clock-live {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 7px rgba(24, 215, 156, 0.12);
}

@media (max-width: 620px) {
    .access-clock strong {
        font-size: 34px;
    }
}

/* CORREÇÃO DEFINITIVA — HORA ATUAL */

.access-clock > span {
    display: block;
    margin-bottom: 7px;
    color: #8390aa;
    font-size: 10px;
    font-weight: 900;
}

.access-clock strong {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.access-clock strong #currentTime {
    display: inline-block;
    margin: 0;
    color: #071936;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.clock-live {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
}

@media (max-width: 620px) {
    .access-clock strong,
    .access-clock strong #currentTime {
        font-size: 34px;
    }
}
