/*
 * Harvess — Login Native/PWA
 * Camada aditiva: preserva o login.css atual e moderniza a experiência.
 */

:root {
    --star-login-bg: #f3f5f7;
    --star-login-surface: rgba(255, 255, 255, .92);
    --star-login-surface-solid: #ffffff;
    --star-login-text: #151a20;
    --star-login-muted: #737d88;
    --star-login-border: #dfe4e9;
    --star-login-border-focus: #0056fe;
    --star-login-action: #0056fe;
    --star-login-action-pressed: #0047d6;
    --star-login-safe-top: env(safe-area-inset-top, 0px);
    --star-login-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: var(--star-login-bg);
    color: var(--star-login-text);
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button,
a,
label,
input {
    -webkit-tap-highlight-color: transparent;
}

.login-shell {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
        max(24px, calc(var(--star-login-safe-top) + 16px))
        20px
        max(24px, calc(var(--star-login-safe-bottom) + 16px));
    background:
        radial-gradient(circle at 50% -15%, rgba(25, 36, 46, .055), transparent 34%),
        linear-gradient(180deg, #f7f8fa 0%, var(--star-login-bg) 100%);
    box-sizing: border-box;
}

.login-card {
    position: relative;
    display: grid;
    gap: 0;
    width: min(100%, 420px);
    margin: 0;
    padding: 30px;
    overflow: hidden;
    background: var(--star-login-surface);
    border: 1px solid rgba(210, 217, 224, .88);
    border-radius: 22px;
    box-shadow:
        0 26px 70px rgba(20, 30, 40, .09),
        0 3px 12px rgba(20, 30, 40, .035);
    backdrop-filter: blur(22px) saturate(1.04);
    -webkit-backdrop-filter: blur(22px) saturate(1.04);
    box-sizing: border-box;
}

.login-app-context {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 7px;
    min-height: 24px;
    margin-bottom: 18px;
    padding: 0 9px;
    color: var(--star-login-muted);
    background: rgba(243, 245, 247, .88);
    border: 1px solid rgba(220, 226, 232, .84);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .01em;
}

.login-app-context__dot {
    width: 6px;
    height: 6px;
    background: #5a9a72;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(90, 154, 114, .09);
}

.login-brand {
    display: grid;
    justify-items: center;
    gap: 20px;
    margin: 0 0 28px;
    text-align: center;
}

.login-logo {
    display: block;
    width: min(156px, 48vw);
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.login-heading {
    display: grid;
    gap: 7px;
}

.login-heading h1 {
    margin: 0;
    color: var(--star-login-text);
    font-size: 28px;
    font-weight: 720;
    letter-spacing: -.035em;
    line-height: 1.06;
}

.login-heading p {
    margin: 0;
    color: var(--star-login-muted);
    font-size: 14px;
    font-weight: 450;
    line-height: 1.4;
}

.login-form {
    display: grid;
    gap: 17px;
    width: 100%;
}

.login-form .field {
    display: grid;
    gap: 7px;
    width: 100%;
    margin: 0;
}

.login-form .field > label {
    margin: 0 0 0 2px;
    color: #4f5964;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .01em;
}

.login-input-shell {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    background: rgba(249, 250, 251, .96);
    border: 1px solid var(--star-login-border);
    border-radius: 13px;
    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
    box-sizing: border-box;
}

.login-input-shell:focus-within {
    background: #fff;
    border-color: var(--star-login-border-focus);
    box-shadow: 0 0 0 4px rgba(72, 84, 96, .075);
}

.login-input-shell__icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #8a949f;
    pointer-events: none;
}

.login-input-shell__icon svg,
.login-password-toggle svg,
.login-passkey-button svg,
.login-footer__secure svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.login-input-shell input {
    width: 100%;
    height: 52px;
    min-width: 0;
    margin: 0 !important;
    padding: 0 0 0 8px !important;
    color: var(--star-login-text) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    font-size: 16px !important;
    font-weight: 520;
    line-height: 1;
    box-sizing: border-box;
}

.login-input-shell input::placeholder {
    color: #a7afb8;
    opacity: 1;
}

.login-input-shell--password {
    grid-template-columns: 24px minmax(0, 1fr) 42px;
    padding-right: 5px;
}

.login-password-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 10px;
    color: #77818c;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    color: var(--star-login-text);
    background: rgba(18, 26, 34, .055);
    outline: none;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    margin-top: -2px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #59636d;
    font-size: 12px;
    font-weight: 560;
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.login-remember__control {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 22px;
    background: #d9dee3;
    border-radius: 999px;
    transition: background-color 150ms ease;
}

.login-remember__control::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    transition: transform 170ms cubic-bezier(.2, .8, .2, 1);
}

.login-remember input:checked + .login-remember__control {
    background: #1d2731;
}

.login-remember input:checked + .login-remember__control::after {
    transform: translateX(14px);
}

.login-remember input:focus-visible + .login-remember__control {
    outline: 3px solid rgba(29, 39, 49, .12);
    outline-offset: 2px;
}

.login-device-security {
    overflow: hidden;
    color: #8a949e;
    font-size: 10px;
    font-weight: 560;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback {
    min-height: 0;
    margin: 0;
    padding: 0;
    color: #b04444;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.feedback:empty {
    display: none;
}

.submit-button,
.login-passkey-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 18px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 680;
    letter-spacing: -.01em;
    cursor: pointer;
    transition:
        transform 90ms ease,
        opacity 130ms ease,
        background-color 130ms ease,
        border-color 130ms ease;
    box-sizing: border-box;
}

.submit-button {
    color: #fff !important;
    background: var(--star-login-action) !important;
    border: 1px solid var(--star-login-action) !important;
    box-shadow: 0 7px 18px rgba(18, 25, 32, .12);
}

.submit-button:hover,
.submit-button:focus-visible {
    background: var(--star-login-action-pressed) !important;
    outline: none;
}

.submit-button:active,
.login-passkey-button:active {
    transform: scale(.988);
}

.submit-button:disabled {
    opacity: .58;
    cursor: wait;
}

.login-passkey-button {
    color: var(--star-login-text);
    background: #fff;
    border: 1px solid var(--star-login-border);
}

.login-passkey-button:hover,
.login-passkey-button:focus-visible {
    background: #f9fafb;
    border-color: #bfc7cf;
    outline: none;
}

.login-passkey-button__icon {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    color: #5f6b77;
}

.login-passkey-button[hidden] {
    display: none !important;
}

.login-credential-note {
    margin: -3px 4px 0;
    color: #8a949e;
    font-size: 10.5px;
    font-weight: 450;
    line-height: 1.45;
    text-align: center;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 11px;
    margin-top: 25px;
    padding-top: 18px;
    color: #8b949d;
    border-top: 1px solid rgba(222, 227, 232, .82);
    font-size: 10.5px;
    font-weight: 560;
}

.login-footer__secure {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.login-footer__secure svg {
    width: 13px;
    height: 13px;
}

.login-card .star-env-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: #929aa3;
    font-size: 10px;
}

.login-card .star-env-switch__option {
    color: inherit;
    text-decoration: none;
}

.login-card .star-env-switch__option.is-active,
.login-card .star-env-switch__option[aria-current="page"] {
    color: #59636d;
    font-weight: 700;
}

/* Dialogs do login seguem o mesmo acabamento. */
.access-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    color: var(--star-login-text);
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(18, 26, 34, .22);
}

.access-dialog::backdrop {
    background: rgba(18, 25, 32, .34);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.access-dialog__body {
    padding: 22px 22px 12px;
}

.access-dialog__actions {
    padding: 10px 22px 22px;
}

.access-dialog__button {
    min-height: 46px;
    padding: 0 16px;
    color: #fff;
    background: var(--star-login-action);
    border: 0;
    border-radius: 12px;
}

/* PWA instalada: aparência ainda mais próxima de app. */
html[data-star-display="standalone"] .login-shell {
    padding-top: max(18px, calc(var(--star-login-safe-top) + 8px));
    padding-bottom: max(18px, calc(var(--star-login-safe-bottom) + 8px));
}

html[data-star-keyboard="open"] .login-shell {
    align-items: start;
}

html[data-star-keyboard="open"] .login-card {
    margin-top: 2px;
}

@media (max-width: 600px) {
    .login-shell {
        place-items: stretch;
        padding:
            max(12px, calc(var(--star-login-safe-top) + 6px))
            0
            max(12px, calc(var(--star-login-safe-bottom) + 6px));
        background: #fff;
    }

    .login-card {
        align-self: stretch;
        width: 100%;
        min-height: calc(100dvh - var(--star-login-safe-top) - var(--star-login-safe-bottom) - 18px);
        padding: clamp(26px, 7.2vw, 34px) 22px 20px;
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .login-app-context {
        margin-bottom: clamp(24px, 8vh, 58px);
    }

    .login-brand {
        gap: 23px;
        margin-bottom: 34px;
    }

    .login-logo {
        width: min(168px, 48vw);
        max-height: 76px;
    }

    .login-heading h1 {
        font-size: clamp(29px, 8.2vw, 36px);
    }

    .login-heading p {
        font-size: 14px;
    }

    .login-form {
        gap: 18px;
    }

    .login-input-shell {
        min-height: 58px;
        border-radius: 14px;
    }

    .login-input-shell input {
        height: 56px;
        font-size: 16px !important;
    }

    .submit-button,
    .login-passkey-button {
        min-height: 56px;
        border-radius: 14px;
        font-size: 16px;
    }

    .login-options {
        align-items: flex-start;
    }

    .login-device-security {
        max-width: 44%;
        line-height: 1.3;
        white-space: normal;
    }

    .login-footer {
        margin-top: auto;
        padding-top: 26px;
    }
}

@media (max-width: 370px) {
    .login-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-options {
        display: grid;
        gap: 9px;
    }

    .login-device-security {
        max-width: none;
        text-align: left;
    }
}

@media (max-height: 680px) and (max-width: 600px) {
    .login-card {
        min-height: auto;
    }

    .login-app-context {
        margin-bottom: 18px;
    }

    .login-brand {
        gap: 13px;
        margin-bottom: 22px;
    }

    .login-logo {
        width: 132px;
        max-height: 56px;
    }

    .login-heading h1 {
        font-size: 26px;
    }

    .login-form {
        gap: 13px;
    }

    .login-input-shell,
    .submit-button,
    .login-passkey-button {
        min-height: 50px;
    }

    .login-input-shell input {
        height: 48px;
    }

    .login-footer {
        margin-top: 18px;
        padding-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-input-shell,
    .submit-button,
    .login-passkey-button,
    .login-remember__control,
    .login-remember__control::after {
        transition: none !important;
    }
}

/*
 * Skin Harvess — cartão claro translúcido, campos em linha e onda azul.
 * Bloco único: fica por último e prevalece sobre a base acima.
 */

:root {
    --star-login-primary: #0056fe;
    --star-login-primary-hover: #0047d6;
    --star-login-primary-active: #003bb5;
    --star-login-ink: #1a2433;
    --star-login-ink-soft: #5d6a7e;
    --star-login-ink-faint: #8b96a5;
    --star-login-line: rgba(55, 75, 105, .2);
    --star-login-line-hover: rgba(55, 75, 105, .38);
}

html,
body {
    color-scheme: light;
    background: #eef3f8;
}

.login-shell {
    position: relative;
    overflow: hidden;
    padding:
        max(20px, calc(env(safe-area-inset-top) + 16px))
        max(16px, env(safe-area-inset-right))
        max(20px, calc(env(safe-area-inset-bottom) + 16px))
        max(16px, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, .96), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #eaf0f7 100%);
}

.login-shell::before {
    display: none;
}

/* Cartão: marca, formulário e rodapé; o rodapé ocupa a faixa da onda. */
.login-card {
    --login-pad-x: clamp(22px, 8vw, 32px);
    --login-wave: 96px;

    position: relative;
    isolation: isolate;
    grid-template-rows: auto 1fr auto;
    justify-self: center;
    width: 100%;
    max-width: 380px;
    min-height: min(660px, calc(100vh - 32px));
    min-height: min(660px, calc(100dvh - 32px));
    padding: clamp(40px, 12vw, 64px) var(--login-pad-x) 0;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
    border: 0;
    border-radius: clamp(28px, 9vw, 40px);
    box-shadow: 0 26px 70px rgba(37, 57, 84, .14);
    backdrop-filter: blur(28px) saturate(1.25);
    -webkit-backdrop-filter: blur(28px) saturate(1.25);
}

/*
 * Onda do rodapé na cor padrão, com o contorno da marca: colunas azuis arredondadas sobem da onda e,
 * nos vãos entre elas, entalhes arredondados a recortam para baixo (máscara do SVG, fundo real do
 * cartão aparecendo). As formas vêm calculadas do index.php.
 */
.login-frequency {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    /* Largura do cartão; a altura acompanha na mesma proporção (viewBox definido no index.php). */
    width: 100%;
    height: auto;
    overflow: visible;
    fill: var(--star-login-primary);
    pointer-events: none;
}

/*
 * O movimento é um deslize vertical (não um encolhimento), para a ponta ficar sempre redonda:
 * a coluna afunda na onda e volta; o entalhe sobe e volta a descer.
 */
.login-frequency__bar,
.login-frequency__notch {
    --login-frequency-rest: 22px;

    transform: translateY(var(--login-frequency-rest));
    animation: login-frequency-ola 3.6s ease-in-out infinite;
}

/* O entalhe quase não sobe: fica sempre fundo, só acompanha a ola de leve. */
.login-frequency__notch {
    --login-frequency-rest: -5px;
}

/*
 * Efeito "ola": colunas e entalhes fazem o mesmo movimento, cada um um pouco atrasado em relação ao
 * vizinho da esquerda; a ondulação (uma onda e meia visível) percorre o rodapé da esquerda para a direita.
 * No <mask>, o primeiro filho é o fundo branco, por isso os entalhes começam em nth-child(2).
 */
.login-frequency__bar:nth-child(1) { animation-delay: -7.20s; }
.login-frequency__notch:nth-child(2) { animation-delay: -6.92s; }
.login-frequency__bar:nth-child(2) { animation-delay: -6.63s; }
.login-frequency__notch:nth-child(3) { animation-delay: -6.35s; }
.login-frequency__bar:nth-child(3) { animation-delay: -6.06s; }
.login-frequency__notch:nth-child(4) { animation-delay: -5.78s; }
.login-frequency__bar:nth-child(4) { animation-delay: -5.49s; }
.login-frequency__notch:nth-child(5) { animation-delay: -5.21s; }
.login-frequency__bar:nth-child(5) { animation-delay: -4.93s; }
.login-frequency__notch:nth-child(6) { animation-delay: -4.64s; }
.login-frequency__bar:nth-child(6) { animation-delay: -4.36s; }
.login-frequency__notch:nth-child(7) { animation-delay: -4.07s; }
.login-frequency__bar:nth-child(7) { animation-delay: -3.79s; }
.login-frequency__notch:nth-child(8) { animation-delay: -3.51s; }
.login-frequency__bar:nth-child(8) { animation-delay: -3.22s; }
.login-frequency__notch:nth-child(9) { animation-delay: -2.94s; }
.login-frequency__bar:nth-child(9) { animation-delay: -2.65s; }
.login-frequency__notch:nth-child(10) { animation-delay: -2.37s; }
.login-frequency__bar:nth-child(10) { animation-delay: -2.08s; }

@keyframes login-frequency-ola {
    0%, 100% { transform: translateY(var(--login-frequency-rest)); }
    50% { transform: translateY(0); }
}

.login-brand {
    position: relative;
    gap: 0;
    min-height: 74px;
    margin: 0 0 clamp(30px, 9vw, 46px);
}

/*
 * Só o efeito de entrada. Sem preenchimento "forwards": ao terminar, a logo volta ao estado natural,
 * sem transformação nem filtro, e fica nítida.
 */
.login-logo {
    width: clamp(176px, 56vw, 228px);
    max-width: 100%;
    max-height: none;
    height: auto;
    animation: login-logo-in .7s cubic-bezier(.2, .8, .2, 1) backwards;
}

@keyframes login-logo-in {
    from { opacity: 0; scale: .86; }
    to { opacity: 1; scale: 1; }
}

.login-form {
    align-self: start;
    gap: 18px;
}

.login-form .field {
    gap: 0;
}

/* Os ícones identificam os campos; o rótulo continua disponível para leitores de tela. */
.login-form .field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.login-input-shell {
    grid-template-columns: 25px minmax(0, 1fr);
    min-width: 0;
    min-height: 52px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--star-login-line);
    border-radius: 0;
    box-shadow: none;
}

.login-input-shell:hover {
    border-bottom-color: var(--star-login-line-hover);
}

.login-input-shell:focus-within {
    background: transparent;
    border-bottom-color: var(--star-login-primary);
    box-shadow: 0 2px 0 -1px var(--star-login-primary);
}

.login-input-shell__icon {
    color: var(--star-login-primary);
}

.login-input-shell input {
    width: 100%;
    max-width: 100%;
    height: 50px;
    color: var(--star-login-ink) !important;
    font-weight: 500;
    text-overflow: ellipsis;
}

.login-input-shell input::placeholder {
    color: rgba(38, 53, 75, .42);
    font-weight: 450;
}

.login-input-shell--password {
    grid-template-columns: 25px minmax(0, 1fr) 44px;
    padding-right: 0;
}

/* 44px: área mínima de toque no celular; o ícone continua com 20px. */
.login-password-toggle {
    width: 44px;
    height: 44px;
    padding: 12px;
    color: #6b7789;
    border-radius: 10px;
    transition: color 130ms ease, background-color 130ms ease;
}

.login-password-toggle:hover {
    color: var(--star-login-ink);
    background: transparent;
}

.login-password-toggle:focus-visible {
    color: var(--star-login-ink);
    background: rgba(0, 86, 254, .08);
    outline: 2px solid rgba(0, 86, 254, .4);
    outline-offset: -2px;
}

.login-password-toggle .login-password-toggle__hide,
.login-password-toggle[aria-pressed="true"] .login-password-toggle__show {
    display: none;
}

.login-password-toggle[aria-pressed="true"] .login-password-toggle__hide {
    display: block;
}

.login-options {
    align-items: center;
    margin-top: 2px;
}

.login-remember {
    flex: 0 0 auto;
    /* Área de toque de 44px sem aumentar a altura da linha. */
    min-height: 44px;
    margin-block: -11px;
    color: var(--star-login-ink-soft);
    font-weight: 550;
    white-space: nowrap;
}

.login-remember__control {
    background: rgba(45, 65, 95, .2);
}

.login-remember input:checked + .login-remember__control {
    background: var(--star-login-primary);
}

.login-remember input:focus-visible + .login-remember__control {
    outline: 3px solid rgba(0, 86, 254, .26);
    outline-offset: 2px;
}

/* O login.js grava apenas o texto: toda mensagem aqui é um aviso de falha. */
.feedback {
    padding: 10px 12px;
    color: #b42318;
    background: #fef3f2;
    border: 0;
    border-radius: 10px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.4;
}

.submit-button,
.login-passkey-button {
    min-height: 52px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: 0;
}

.submit-button {
    height: 52px;
    margin-top: 16px;
    background: var(--star-login-primary) !important;
    border: 0 !important;
    box-shadow: 0 8px 20px rgba(0, 86, 254, .18);
    transition:
        transform 90ms ease,
        background-color 130ms ease,
        box-shadow 130ms ease;
}

.submit-button:hover:not(:disabled) {
    background: var(--star-login-primary-hover) !important;
    box-shadow: 0 10px 24px rgba(0, 71, 214, .28);
}

.submit-button:focus-visible {
    background: var(--star-login-primary-hover) !important;
    outline: 3px solid rgba(0, 86, 254, .3);
    outline-offset: 2px;
}

.submit-button:active:not(:disabled) {
    background: var(--star-login-primary-active) !important;
    box-shadow: 0 4px 12px rgba(0, 59, 181, .24);
}

.submit-button:disabled {
    opacity: .72;
    box-shadow: none;
}

.login-passkey-button {
    color: var(--star-login-ink);
    background: rgba(255, 255, 255, .7);
    border-color: var(--star-login-line);
}

.login-passkey-button:hover,
.login-passkey-button:focus-visible {
    background: #fff;
    border-color: var(--star-login-line-hover);
}

.login-passkey-button:focus-visible {
    outline: 3px solid rgba(0, 86, 254, .26);
    outline-offset: 2px;
}

.login-passkey-button__icon {
    color: var(--star-login-primary);
}

/* Rodapé sobre a onda: texto claro, alinhado à base do cartão. */
.login-footer {
    position: relative;
    z-index: 1;
    align-items: flex-end;
    align-content: flex-end;
    min-height: var(--login-wave);
    margin: 72px calc(var(--login-pad-x) * -1) 0;
    padding: 0 var(--login-pad-x) 26px;
    color: rgba(255, 255, 255, .9);
    border-top: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
}

.login-footer__secure {
    align-items: center;
}

.login-card .star-env-switch {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    line-height: inherit;
}

.login-card .star-env-switch__option,
.login-card .star-env-switch__separator {
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
}

.login-card .star-env-switch__option:hover,
.login-card .star-env-switch__option:focus-visible,
.login-card .star-env-switch__option.is-active,
.login-card .star-env-switch__option[aria-current="page"] {
    color: #fff;
}

.login-card .star-env-switch__option.is-active,
.login-card .star-env-switch__option[aria-current="page"] {
    font-weight: 700;
}

.login-card .star-env-switch__option:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Celular muito estreito: a onda fica mais baixa, então o texto do rodapé desce junto. */
@media (max-width: 340px) {
    .login-footer {
        padding-bottom: 18px;
    }
}

/* Desktop: cartão mais amplo. */
@media (min-width: 768px) {
    .login-card {
        --login-pad-x: 40px;

        width: min(92vw, 460px);
        max-width: 460px;
    }
}

/* Telas baixas: o cartão encolhe para caber sem rolagem. */
@media (prefers-reduced-motion: reduce) {
    .login-logo,
    .login-frequency__bar,
    .login-frequency__notch {
        animation: none;
    }
}

@media (max-height: 700px) and (max-width: 520px) {
    .login-card {
        --login-wave: 80px;

        min-height: 0;
        padding-top: 32px;
    }

    .login-brand {
        margin-bottom: 26px;
    }

    .login-form {
        gap: 13px;
    }

    .login-footer {
        margin-top: 56px;
        padding-bottom: 20px;
    }
}
