/* ========================================
 Fontes
======================================== */
@font-face {
    font-family: 'Unimed Sans';
    src: url('../fonts/UnimedSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Unimed Sans';
    src: url('../fonts/UnimedSans-Bold.otf') format('opentype');
    font-weight: bold;
    font-style:normal;
}

@font-face {
    font-family: 'Unimed Slab';
    src: url('../fonts/UnimedSlab-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* ========================================
 Tokens e Resets
======================================== */
:root {
    --unimed-green: #00804D;
    --unimed-green-dark: #00663D;
    --unimed-danger: #DA1414;
    --unimed-danger-title: #C31212;
    --unimed-gray: #C4C4C4;
    --unimed-secondary: #282828;
    --unimed-light-secondary: #6C6C6C;
    --unimed-disabled: #DEDEDE;
}

html, body, a, label, input, .login-span, .login-info-text, li {
    font-family: 'Unimed Sans', sans-serif;
    margin: 0;
    padding: 0;
}

span{
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.hidden{
    display: none !important;
}

/* ========================================
 Remoção de icone genêrico de navegadores
======================================== */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background: white;
}

button, a, input[type="submit"], input[type="button"] {
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

button[type="submit"] {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    opacity: 1 !important;
}

/* ========================================
 Background & Layout
======================================== */
.background-mask {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: calc(100vh * (1413 / 906));
    max-width: calc((100vw - clamp(3rem, 10vw, 12.5rem)) / 0.92109375);
    height: 100vh;
    object-fit: cover;
    background-size: contain;
    clip-path: url(#figmaMask);
    background-position: top left;
    background-repeat: no-repeat;
}

.mobile-image-container {
    display: none;
}

.login-pf body {
    background-size: cover;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white
}

.mobile-form-wrapper {
    display: flex;
    justify-content: flex-end; 
    align-items: center;      
    width: 100%;
    min-width: 100dvw;

    height: auto;
    min-height: 100dvh;

    padding-right: clamp(3rem, 10vw, 12.5rem);
    padding-left: clamp(1rem, 3vw, 3rem);

    padding-right: clamp(3rem, 10vw, 12.5rem); /* 48px -> 3rem, 200px -> 12.5rem */
    padding-left: clamp(1rem, 3vw, 3rem); /* 16px -> 1rem, 48px -> 3rem */
    box-sizing: border-box;

    overflow-x: hidden;
}

.main-page {
    width: min(90%, 28rem);
    max-width: min(28rem, 100%);
    padding: 2rem; /* 32px -> 2rem */
    gap: 2rem; /* 32px -> 2rem */
    background: #FFFFFF;
    box-shadow: 0rem 0.5rem 1rem rgba(39, 40, 51, 0.16); /* 8px -> 0.5rem, 16px -> 1rem */
    border-radius: 1rem; /* 16px -> 1rem */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ========================================
 Componentes Bases
======================================== */
input:focus,
button:focus,
textarea:focus,
select:focus,
span:focus,
.gender-option {
    outline: none;
    box-shadow: none;
}

form, .form-data-wrapper, .kc-form-wrapper, [data-form-container] {
    position: relative;
}

/* ========================================
 Estrutura e Layout
 (Wrappers, containers e cabeçalhos)
======================================== */

.login-form-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* 32px -> 2rem */
}

.header-title-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem; /* 16px -> 1rem */
}

/* Componente específico de ajuda/recuperação */
#header-title-instructions-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 24px -> 1.5rem */
}

.form-data-wrapper {
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
    gap: 1.5rem; /* 24px -> 1.5rem */
}

.help-espec {
    display: flex;
    width: 100%;
    flex-direction: column;
    margin: 0;
    gap: 1.25rem; /* 20px -> 1.25rem */
}

.span-wrapper {
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
}

.form-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* 16px -> 1rem */
    width: 100%;
}

.form-buttons-code-options-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* 24px -> 1.5rem */
}

.kc-form-user-conent-group {
    display: flex;
    gap: 1.5rem; /* 24px -> 1.5rem */
    flex-direction: column;
    width: 100%;
}

.button-wrapper {
    margin-top: 2rem; /* 32px -> 2rem */
}

.code-device-labels-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem; /* 16px -> 1rem */
}

.verify-codes-choose-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px -> 0.75rem */
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
}

/* ========================================
 Tipografia e Texto
 (Títulos, parágrafos, labels, links)
======================================== */

/* --- Títulos e Texto Base --- */

.unimed-logo {
    display: block;
    max-width: 11.875rem; /* 190px -> 11.875rem */
    width: 100%;
    max-height: 4.375rem; /* 70px -> 4.375rem */
    height: 100%;
}

.kc-form-title {
    font-weight: bold;
    font-family: 'Unimed Slab', 'Unimed Sans', sans-serif;
    font-size: 1.75rem; /* 28px -> 1.75rem */
    color: var(--unimed-secondary);
    margin: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.kc-form-subtitle {
    font-family: 'Unimed Sans', sans-serif;
    font-size: 0.95rem;
    color: #404040;
    margin: 0.5rem 0 0 0;
}

.kc-instruction-text {
    color: var(--dark-dark-l-2, #404040);
    text-align: left;
    font-family: "Unimed Sans";
    font-size: 1.125rem; /* 18px -> 1.125rem */
    font-style: normal;
    font-weight: 400;
    margin: 0rem;
}

.kc-instruction-text-center {
    text-align: center;
    color: var(--dark-dark-l-2, #404040);
    text-align: center;
    font-family: "Unimed Sans";
    font-size: 1.125rem; /* 18px -> 1.125rem */
    font-style: normal;
    font-weight: 400;
    line-height: 1.75rem; /* 28px -> 1.75rem */
    margin: 0rem;
}

.mini-instruction-text {
    font-family: 'Unimed Sans', sans-serif;
    font-size: 1rem; /* 16px -> 1rem */
    color: var(--unimed-secondary);
    font-weight: 400;
    margin: 0;
    width: 100%;
}

.subtitle,
.instruction,
.login-span,
.login-label,
.login-info-text,
label {
    font-size: 1rem; /* 16px -> 1rem */
    font-weight: 400;
    color: var(--unimed-secondary);
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem; /* 8px -> 0.5rem */
}

.login-label {
    font-weight: bold;
    line-height: 150%;
    text-align: start;
}

#cel-not-found-text {
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
    font-size: 1rem; /* 16px -> 1rem */
    color: #863A00;
    margin: 0;
}

.kc-show-cpf {
    width: 100%;
    font-family: 'Unimed Sans', sans-serif;
    font-size: 1rem; /* 16px -> 1rem */
    font-weight: 400;
    margin: 0;
}

.code-valid-timer {
    display: flex;
    flex-direction: row;
    font-family: 'Unimed Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem; /* 16px -> 1rem */
    margin-bottom: 0.75rem; /* 12px -> 0.75rem */
    color: var(--unimed-secondary);
}

.code-enter-header-instruction-text {
    font-family: 'Unimed Sans', sans-serif;
    font-size: 1rem; /* 16px -> 1rem */
    font-weight: 400;
    color: var(--unimed-secondary);
    margin: 0;
    padding: 0;
    width: 100%;
}

.kc-send-to-label {
    font-size: 0.8125rem; /* 13px -> 0.8125rem */
    color: var(--unimed-secondary);
    margin-top: 0.25rem; /* 4px -> 0.25rem */
    margin-bottom: 0.125rem; /* 2px -> 0.125rem */
}

/* --- Links --- */

a {
    font-weight: bold;
    font-size: 1rem; /* 16px -> 1rem */
    line-height: 1.125rem; /* 18px -> 1.125rem */
    color: var(--unimed-green);
    text-decoration: underline;
    cursor: pointer;
    border-radius: 0.25rem; /* 4px -> 0.25rem */
}

a:hover {               
    color: var(--unimed-green-dark);
}

.kc-forgot-password-link {
    font-family: 'Unimed Sans', sans-serif;
    font-size: 1rem; /* 16px -> 1rem */
    font-weight: bold;
    width: fit-content;
}

#update-cpf-link {
    font-family: 'Unimed Sans', sans-serif;
    font-size: 1rem; /* 16px -> 1rem */
    font-weight: bold;
    text-decoration: underline;
}

.kc-inline-link {
    font-family: 'Unimed Sans', sans-serif;
    font-size: 1rem; /* 16px -> 1rem */
    font-weight: bold;
    width: 100%;
    text-align: center;
    color: var(--unimed-green);
}

.kc-inline-link:hover {
    color: var(--unimed-green-dark);
}

.kc-inline-link:focus{
    border-radius: 0.25rem; /* 4px -> 0.25rem */
    box-shadow: 
        0 0 0 0.1875rem #fff, /* 3px -> 0.1875rem */
        0 0 0 0.375rem var(--unimed-green); /* 6px -> 0.375rem */
}

.small-box-shadow-link:focus{
    box-shadow:
        0 0 0 0.1875rem var(--unimed-green);
}

.kc-span-link {
    color: var(--dark-dark-l-2, #404040);
    text-align: center;
    font-family: "Unimed Sans";
    font-size: 1rem; /* 16px -> 1rem */
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem; /* 24px -> 1.5rem */
}

/* ========================================
 Botões
======================================== */

/* --- Botões Primários --- */

button:focus{
    transition: all 0.2s ease;
    box-shadow: 
        0 0 0 0.03125rem var(--unimed-green), /* 0.5px -> 0.03125rem */
        0 0 0 0.1875rem #fff, /* 3px -> 0.1875rem */
        0 0 0 0.375rem var(--unimed-green); /* 6px -> 0.375rem */
}

button:active {
    transition: all 0.2s ease;
    box-shadow: 
        0 0 0 0.03125rem var(--unimed-green), /* 0.5px -> 0.03125rem */
        0 0 0 0.1875rem #fff, /* 3px -> 0.1875rem */
        0 0 0 0.375rem var(--unimed-green); /* 6px -> 0.375rem */
}

.kc-primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3.5rem; /* 56px -> 3.5rem */
    padding: 0.5rem; /* 8px -> 0.5rem */
    gap: 0.5rem; /* 8px -> 0.5rem */
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    background-color: var(--unimed-green);
    border: 0;
    flex-direction: column;
    cursor: pointer;
}

.kc-primary-button:hover {
    background-color: var(--unimed-green-dark);
}

.kc-primary-button:focus {
    background-color: var(--unimed-green-dark);
}

.kc-primary-button:active {
    background-color: var(--unimed-green-dark);
}

.kc-primary-button.disabled {
    background-color: var(--unimed-disabled);
    cursor: not-allowed;
    border: none;
    box-shadow: none;
}

.kc-primary-button-text {
    font-family: 'Unimed Sans', sans-serif;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.25rem; /* 20px -> 1.25rem */
}

.kc-primary-button-text.disabled {
    color: #4D4D4D;
}

/* --- Botões Secundários --- */

.kc-secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem; /* 48px -> 3rem */
    padding: 0.5rem; /* 8px -> 0.5rem */
    gap: 0.5rem; /* 8px -> 0.5rem */
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    border: 0.0625rem solid transparent; /* 1px -> 0.0625rem */
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.kc-secondary-button:hover,
.kc-secondary-button:focus {
    border-color: var(--unimed-green);
}

.kc-secondary-button-text {
    font-family: 'Unimed Sans', sans-serif;
    font-size: 1.25rem; /* 20px -> 1.25rem */
    font-weight: bold;
    color: var(--unimed-green);
    text-decoration: underline;
}

/* ========================================
 Formulários e Inputs
======================================== */

/* --- Layout de Formulário --- */

.kc-form-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* 4px -> 0.25rem */
    width: 100%;
}

.code-enter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.25rem; /* 20px -> 1.25rem */
    position: relative;
}

.code-label-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem; /* 12px -> 0.75rem */
}

/* --- Inputs e Labels --- */

.kc-input-label-title {
    font-weight: bold;
    font-family: 'Unimed Sans', sans-serif;
    font-size: 1rem; /* 16px -> 1rem */
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: start;
    color: var(--unimed-secondary);
}

.kc-input-label {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    text-align: start;
    width: 100%;
    padding-left: 1rem; /* 16px -> 1rem */
    padding-right: 1rem; /* 16px -> 1rem */
    padding-bottom: 0.75rem; /* 12px -> 0.75rem */
    padding-top: 0.75rem; /* 12px -> 0.75rem */
    gap: 0.5rem; /* 8px -> 0.5rem */
    background: #FFFFFF;
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    transition: border-color 0.2s ease, background-color 0.2s ease;
    font-size: 1rem; /* 16px -> 1rem */
    color: var(--unimed-secondary);
    font-weight: 400;
    font-family: 'Unimed Sans', sans-serif;
}

.kc-input-password{
    padding-right: 44px;
}

input, .check-icon {
    border: 0.0625rem solid var(--unimed-light-secondary); /* 1px -> 0.0625rem */
}

input:hover, .check-wrapper:hover .check-icon, .close:hover, .toggle-password:hover {
    border: 0.0625rem solid var(--unimed-green); /* 1px -> 0.0625rem */
}

input:focus, a:focus, .check-input:focus + .check-icon, .toggle-password:focus, .close:focus {
    border-color: var(--unimed-green);
    outline: none;

    box-shadow:
        0 0 0 0.03125rem var(--unimed-green), /* 0.5px -> 0.03125rem */
        0 0 0 0.1875rem #fff, /* 3px -> 0.1875rem */
        0 0 0 0.375rem var(--unimed-green); /* 6px -> 0.375rem */
}

.kc-input-label::placeholder {
    color: var(--unimed-light-secondary);
    font-size: 1rem; /* 16px -> 1rem */
    font-weight: 400;
    font-family: 'Unimed Sans', sans-serif;
    letter-spacing: normal;
}

.kc-input-label[type="password"] {
    font-size: 1.875rem; /* 30px -> 1.875rem */
    letter-spacing: -0.09375rem; /* -1.5px -> -0.09375rem */
    height: 2.875rem; /* 46px -> 2.875rem */
}

.kc-input-label[type="password"]::placeholder {
    font-size: 1rem; /* 16px -> 1rem */
    transform: translateY(-0.25rem); /* -4px -> -0.25rem */
}

.kc-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem; /* 4px -> 0.25rem */
}

.kc-input-container .toggle-password {
    border: none;
    border-radius: 0.25rem; /* 4px -> 0.25rem */
    padding: 0rem;
    position: absolute;
    display: flex;
    align-items: center;
    right: 0.625rem; /* 10px -> 0.625rem */
    cursor: pointer;
    background-color: transparent;
}

/* --- Input de Código --- */

#code-label {
    display: block;
    text-align: left;
}

.code-input-label-title {
    width: 100%;
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
    font-size: 1rem; /* 16px -> 1rem */
    margin: 0;
    padding: 0;
}

.code-input-label {
    width: 100%;
    height: 4.25rem; /* 68px -> 4.25rem */
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    color: #151515;
    font-family: "Unimed Sans";
    font-size: 1.75rem; /* 28px -> 1.75rem */
    font-style: normal;
    font-weight: 700;
    line-height: 1.5rem; /* 24px -> 1.5rem */
    letter-spacing: 1rem; /* 16px -> 1rem */
    text-align: center;
    padding: 0;
    margin: 0;
}

.otp-loading-overlay {
    display: none; 
    position: absolute; 
    top: 0;
    left: -0.9375rem; /* -15px -> -0.9375rem */
    width: calc(100% + 1.875rem); /* 30px -> 1.875rem */
    height: 100%;
    background: rgba(255, 255, 255, 0.8); 
    z-index: 999; 
    align-items: center;
    justify-content: center;
}

.otp-loading-overlay.active{
    display: flex;
}

/* Spinner */
.otp-spinner.spinner {
    width: 3.125rem; /* 50px -> 3.125rem */
    height: 3.125rem; /* 50px -> 3.125rem */
    border: 0.3125rem solid var(--unimed-primary, #008d4c); /* 5px -> 0.3125rem */
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotate360 0.8s linear infinite;
}

/* Animação */
@keyframes rotate360 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Radio Buttons e Checkboxes --- */

.kc-form-radio-button-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem; /* 8px -> 0.5rem */
}

.terms-acceptance-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem; /* 8px -> 0.5rem */
}

.terms-text-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.terms-acceptance-text {
    width: 100%;
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
    font-size: 1rem; /* 16px -> 1rem */
    margin: 0;
    padding: 0;
    color: var(--unimed-secondary);
}


.check-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    width: fit-content;
    position: relative;
}

/* Input real (fica invisível) */
.check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
    inset: 0;
}

/* Ícone visual que imita o input real */
.check-icon {
    width: 1.25rem; /* 20px -> 1.25rem */
    height: 1.25rem; /* 20px -> 1.25rem */
    border-radius: 0.25rem; /* 4px -> 0.25rem */
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.125rem; /* 18px -> 1.125rem */
    color: transparent;
    background: white;

    transition: all .2s ease;
    cursor: pointer;
}

.check-input:checked + .check-icon {
    background: var(--unimed-green);
    border-color: var(--unimed-green);
    color: white;
}

.check-input:checked + .check-icon {
    background: var(--unimed-green);
    border-color: var(--unimed-green);
    color: white;
}

.check-icon svg rect {
    fill: transparent !important;
    stroke: transparent !important;
    transition: fill .2s ease;
}

.check-input:checked + .check-icon svg rect {
    fill: var(--unimed-green) !important;
    stroke: var(--unimed-green) !important;
}

.check-icon svg path {
    opacity: 0;
    transition: opacity .2s ease;
}

.check-input:checked + .check-icon svg path {
    opacity: 1;
}

/* --- Seletor de Gênero --- */
#gender-toggle-hidden-select,
#genero {
    display: none !important;
}

.gender-toggle {
    display: flex;
    gap: 1.25rem; /* 20px -> 1.25rem */
    margin-top: 0.3125rem; /* 5px -> 0.3125rem */
    flex-wrap: wrap;
}

/*base*/
.gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    line-height: normal;
}

.gender-option::before {
    content: "";
    width: 1.125rem; /* 18px -> 1.125rem */
    height: 1.125rem; /* 18px -> 1.125rem */
    border: 0.125rem solid #6C6C6C; /* 2px -> 0.125rem */
    display: flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;

    border-radius: 50%;
    border: 2px solid #6C6C6C;
    background-color: transparent;
    box-shadow: none;
    flex-shrink: 0;

    line-height: 0;
    font-size: 0;
}

.gender-option::after{
    content: "";
    width: 0.75rem; /* 12px -> 0.75rem */
    height: 0.75rem; /* 12px -> 0.75rem */
    position: absolute;
    top: var(--dot-left, 0.6875rem); /* 11px -> 0.6875rem */
    left: var(--dot-left, 0.6875rem); /* 11px -> 0.6875rem */

    border-radius: 50%;
    background-color: transparent;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Hover (anel externo leve) */
.gender-option:hover::before {
    border: 2px solid var(--unimed-green);
}

/* Focus (anel mais espesso) */
.gender-option:focus::before, .gender-option.active:focus::before {
    box-shadow:
    0 0 0 0.125rem #fff, /* 2px -> 0.125rem */
    0 0 0 0.375rem var(--unimed-green); /* 6px -> 0.375rem */
}

.gender-option.active::after {
    background-color: var(--unimed-green);
}

/* Anel ativo */
.gender-option.active::before {
     border: 0.125rem solid var(--unimed-green);
}

/* Hover (anel externo leve) */
.gender-toggle[aria-invalid="true"]  .gender-option::before {
    border: 0.125rem solid var(--unimed-danger);
}

/* Focus (anel mais espesso) */
.gender-toggle[aria-invalid="true"]  .gender-option:focus::before {
    box-shadow:
    0 0 0 0.125rem #fff,
    0 0 0 0.375rem var(--unimed-danger);
}

.gender-toggle[aria-invalid="true"]  .gender-option.active::after {
    background-color: var(--unimed-danger);
}

/* --- Validação e Erros --- */

.kc-input-error-text {
    font-family: 'Unimed Sans', sans-serif;
    align-items: center;
    gap: 0.25rem; /* 4px -> 0.25rem */
    color: var(--unimed-danger);
    font-size: 0.875rem; /* 14px -> 0.875rem */
    font-weight: bold;
    margin-top: 0.125rem; /* 2px -> 0.125rem */
    vertical-align: middle;
}

.kc-input-label[aria-invalid="true"], .code-input-label[aria-invalid="true"], .check-input[aria-invalid="true"] + .check-icon {
    border: 0.0625rem solid var(--unimed-danger, #d32f2f) !important; /* 1px -> 0.0625rem */
}

.kc-input-label[aria-invalid="true"]:hover, .code-input-label[aria-invalid="true"]:hover, .check-wrapper:hover + .check-input[aria-invalid="true"] + .check-icon{
    border: 0.0625rem  solid var(--unimed-danger, #d32f2f) !important; 
}

.kc-input-label[aria-invalid="true"]:focus, .code-input-label[aria-invalid="true"]:focus, .check-input[aria-invalid="true"]:focus + .check-icon {
    border: 0.0625rem solid var(--unimed-danger, #d32f2f) !important; /* 1px -> 0.0625rem */
    box-shadow:
        0 0 0 0.03125rem var(--unimed-danger, #d32f2f), /* 0.5px -> 0.03125rem */
        0 0 0 0.1875rem #fff, /* 3px -> 0.1875rem */
        0 0 0 0.375rem var(--unimed-danger, #d32f2f) !important; /* 6px -> 0.375rem */
}

.terms-checkbox[aria-invalid="true"] {
    border: 0.375rem solid var(--unimed-danger) !important;
}

.login-input.input-group {
    border-color: var(--unimed-danger);
    background-color: #FDECEA;
}

.login-input.input-group.erro-anulado {
    border-color: var(--unimed-gray) !important;
    background-color: #FFFFFF !important;
}

.input-error-wrapper {
    padding-top: 0.5rem; /* 8px -> 0.5rem */
}

.password-validation {
    margin-top: 1rem; /* 16px -> 1rem */
    padding-left: 0.25rem; /* 4px -> 0.25rem */
    font-size: 0.875rem; /* 14px -> 0.875rem */
    list-style: none;
}

.password-validation li {
    margin-bottom: 0.25rem; /* 4px -> 0.25rem */
    display: flex;
    align-items: center;
}

.password-validation li i {
    margin-right: 0.5rem; /* 8px -> 0.5rem */
}

.password-validation .valid {
    color: var(--unimed-green);
}

.password-validation .invalid {
    color: var(--unimed-danger);
}

.kc-password-requirements-block {
    gap: 0.125rem; /* 2px -> 0.125rem */
    padding-top: 0.5rem; /* 8px -> 0.5rem */
    padding-bottom: 0.5rem; /* 8px -> 0.5rem */
    padding-left: 0px;
    padding-right: 0px;
    margin: 0px;
    width: 100%;

    display: flex;
    flex-direction: column;
    font-family: 'Unimed Sans', sans-serif;
    align-items: flex-start;
}

.kc-password-requirements-title {
    gap: 0.5rem; /* 8px -> 0.5rem */
    padding-bottom: 0.75rem; /* 12px -> 0.75rem */
    font-size: 1rem; /* 16px -> 1rem */
    
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
    list-style-type: none;
    padding-left: 0;
}

.kc-password-requirements-item {
    gap: 0.5rem; /* 8px -> 0.5rem */
    font-size: 1rem; /* 16px -> 1rem */
    margin-left: 0.25rem; /* 4px -> 0.25rem */

    display: flex;
    align-items: center;
    font-family: 'Unimed Sans', sans-serif;
    font-weight: 400;
    color: var(--unimed-light-secondary);
    list-style: none;
    position: relative;
}

.kc-password-requirements-item i {
    font-size: 1.25rem; /* 20px -> 1.25rem */
    width: 1.25rem; /* 20px -> 1.25rem */
    text-align: center;
    flex-shrink: 0;
}

.kc-password-requirements-item.has-icon::before {
    content: "";
}

.kc-password-requirements-item.valid {
    color: var(--unimed-green);
}

.kc-password-requirements-item.invalid {
    color: var(--unimed-danger);
}

.kc-password-requirements-item[style*="list-style-type: none"] {
    margin-left: 0px;
}


/* ========================================
 Componentes
======================================== */

/* --- Componente: Blocos de Informação, Alerta e Sucesso --- */

.help-info-container {
    padding: 1rem; /* 16px -> 1rem */
    gap: 0.5rem; /* 8px -> 0.5rem */
    border: 0.0625rem solid #B95000; /* 1px -> 0.0625rem */
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    margin: 0;

    display: flex;
    flex-direction: row;
    background-color: #FFF4EC;
    align-items: center;
    margin: 0;
}

.code-device-info-wrapper {
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    padding: 1rem; /* 16px -> 1rem */
    gap: 0.5rem; /* 8px -> 0.5rem */
    border: 0.0625rem solid #2E5AAC; /* 1px -> 0.0625rem */

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: -webkit-fill-available;
    background-color: #EEF2FA;
}

.code-device-info-texts-group {
    gap: 0.5rem; /* 8px -> 0.5rem */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.code-device-info-title {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
    color: #234584;
}

.code-device-info-text {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
}

.kc-info-container {
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    padding: 1rem 1.25rem; /* 16px -> 1rem, 20px -> 1.25rem */
    gap: 0.75rem; /* 12px -> 0.75rem */

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    max-width: 100%;
}

.kc-show-cpf {
    max-width: 100%;
    overflow-wrap: break-word; 
    word-break: break-all;
}

.cpf-info-container {
    background-color: #f4f4f4;
}

.kc-code-instruction-block {
    border: 0.0625rem solid #004d9c; /* 1px -> 0.0625rem */
    border-radius: 0.25rem; /* 4px -> 0.25rem */
    padding: 0.9375rem 1.25rem; /* 15px -> 0.9375rem, 20px -> 1.25rem */
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
    
    background-color: #eef4fd;
}

.kc-instruction-block-text {
    font-size: 1rem; /* 16px -> 1rem */
    margin-bottom: 0.3125rem; /* 5px -> 0.3125rem */
    color: #004d9c;
    font-weight: bold;
    margin-top: 0;
    line-height: 1.5;
}

.kc-verification-data {
    display: block;
    font-size: 1.125rem; /* 18px -> 1.125rem */
    color: var(--unimed-secondary);
    font-weight: bold;
}

.blocked-user-container,
.timeout-user-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.blocked-user-container {
    border: 0.0625rem solid var(--unimed-danger); /* 1px -> 0.0625rem */
    border-radius: 1rem; /* 16px -> 1rem */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); /* 4px -> 0.25rem, 12px -> 0.75rem */
    background-color: #FDECEA;
}

.blocked-user-container span:first-of-type:not(#timer),
.timeout-user-container strong {
    font-size: 1.125rem; /* 18px -> 1.125rem */
    line-height: 1.375rem; /* 22px -> 1.375rem */

    font-family: 'Unimed Sans';
    font-weight: bold;
    font-style: normal;
    margin-top: 0;
}

.timeout-user-container strong {
    margin-bottom: 0.75rem; /* 12px -> 0.75rem */
    color: #282828;
}

.timeout-user-container i {
    margin-bottom: 1rem; /* 16px -> 1rem */
    display: block;
}


.kc-code-warning-block {
    background-color: #FEEFEF;
    border: 0.0625rem solid #DA1414; /* 1px -> 0.0625rem */
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    padding: 1.25rem; /* 20px -> 1.25rem */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px -> 1rem */
    text-align: center;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.05); /* 4px/6px -> 0.25rem/0.375rem */
}

.kc-warning-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px -> 0.75rem */
    align-items: center;
    justify-content: center;
}

.kc-warning-block-title {
    font-size: 1.125rem; /* 18px -> 1.125rem */
    font-family: 'Unimed Sans', sans-serif;
    color: var(--unimed-danger-title);
    font-weight: bold;
    margin: 0;
}

.kc-warning-block-text {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    color: var(--unimed-secondary);
    font-weight: 400;
    text-align: center;
    margin: 0;
}

.kc-code-success-block {
    border: 0.0625rem solid var(--unimed-green); /* 1px -> 0.0625rem */
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    padding: 1.25rem; /* 20px -> 1.25rem */
    background-color: #E2F4ED;
    width: -webkit-fill-available;
    text-align: center;
}

.kc-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* 8px -> 0.5rem */
}

.kc-success-block-title {
    font-size: 1.125rem; /* 18px -> 1.125rem */
    font-family: 'Unimed Sans', sans-serif;
    color: var(--unimed-secondary);
    font-weight: bold;
    margin:0;
}

.kc-success-block-text {
    font-family: 'Unimed Sans', sans-serif;
    color: var(--unimed-secondary);
    font-weight: bold;
    font-size: 1rem; /* 16px -> 1rem */
    margin: 0rem;
}

#prec-success-text-confirm {
    font-weight: 400;
    font-family: 'Unimed Sans', sans-serif;
    color: var(--unimed-secondary);
    font-size: 1rem; /* 16px -> 1rem */
    margin:0;
}

/* --- Componente: Toast / Notificação --- */

.toast-message {
    top: 1.5rem !important; /* 24px -> 1.5rem */
    right: 1.5rem !important; /* 24px -> 1.5rem */
    min-width: 17.5rem; /* 280px -> 17.5rem */
    padding: 1rem 1.5rem; /* 16px -> 1rem, 24px -> 1.5rem */
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    gap: 1rem; /* 16px -> 1rem */
    font-size: 0.9375rem; /* 15px -> 0.9375rem */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15); /* 4px/12px -> 0.25rem/0.75rem */
    transform: translateY(-1.25rem); /* -20px -> -1.25rem */

    position: fixed;
    max-width: 50vw;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-message.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.toast-message.hide {
    transform: translateY(-1.25rem); /* -20px -> -1.25rem */
    opacity: 0;
    pointer-events: none;
}

.toast-close-btn {
    top: 0.5rem !important;/* 8px -> 0.5rem */
    right: 0.75rem !important; /* 12px -> 0.75rem */
    all: unset;
    position: absolute;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast-message .login-alert-title {
    font-size: 0.875rem; /* 14px -> 0.875rem */
    font-weight: bold;
    line-height: 150%;
}

.toast-close-btn.hide{
    display: none;
}

.toast-message.alert-error {
    background-color: #FDECEA;
    color: var(--unimed-danger);
}

.toast-message.alert-success {
    background-color: #e6f4ea;
    color: var(--unimed-green);
}

.toast-message.alert-warning {
    background-color: #fff4e5;
    color: #d97a00;
}

.toast-message.alert-info {
    background-color: #e8f4fd;
    color: #2c7be5;
}

/* --- Componente: Barra de Progresso --- */

.kc-progress-bar-container {
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
    text-align: left;
}

.progress-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0.5rem; /* 8px -> 0.5rem */
}

.kc-progress-bar {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem; /* 8px -> 0.5rem */
    width: 100%;
    height: 0.625rem; /* 10px -> 0.625rem */
    margin-bottom: 0.5rem; /* 8px -> 0.5rem */
}

.progress-bar {
    display: flex;
    width: 100%;
    list-style: none;
    gap: 0.25rem; /* 4px -> 0.25rem */
    margin: 0;
    padding: 0;
}

.progress-bar li {
    height: 0.5rem; /* 8px -> 0.5rem */
    border: 0.0625rem solid var(--unimed-green); /* 1px -> 0.0625rem */
    flex: 1;
    width: 101px;
    border-radius: 999px;
    background-color: transparent;
}

.progress-bar li.done {
    background-color: var(--unimed-green) !important;
}

.progress-bar-text {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
    color: var(--unimed-green);
    margin: 0;
    padding: 0;
}

.kc-progress-step {
    flex-grow: 1;
    height: 100%;
    background-color: #FFFFFF;
    border: 1px solid var(--unimed-green);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.kc-step-active {
    background-color: var(--unimed-green);
}

/* --- Componente: Opções de Código (Botões) --- */

.code-option-button {
    height: fit-content;
    min-height: 7.5rem; /* 120px -> 7.5rem */
    border-radius: 0.5rem; /* 8px -> 0.5rem */
    padding: 1.25rem; /* 20px -> 1.25rem */
    gap: 1rem; /* 16px -> 1rem */
    border: 0.0625rem solid #808080; /* 1px -> 0.0625rem */
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: transparent;
}

.code-option-button:hover{
    cursor: pointer;
    border: 1px solid var(--unimed-green);
}

.arrow-icon,
.code-spinner-overlay {
    margin-left: auto;
    flex-shrink: 0;
}

.code-spinner-overlay {
    display: none;
    align-items: center;
    justify-content: center;
}

.code-spinner-overlay.active {
    display: flex;
}

.code-spinner.spinner {
    width: 1.25rem; /* 20px -> 1.25rem */
    height: 1.25rem; /* 20px -> 1.25rem */
    border: 0.1875rem solid var(--unimed-primary, #008d4c); /* 3px -> 0.1875rem */
    border-top-color: #fff;
    border-radius: 50%;
    animation: rotate360 0.8s linear infinite;
}

@keyframes rotate360 {
    to { transform: rotate(360deg); }
}

.code-option-button.processing {
    border-color: var(--unimed-primary, #00804D);
}

.code-option-button[aria-disabled="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.code-option-text-icon {
    gap: 1rem; /* 16px -> 1rem */
    display: flex;
    flex-direction: row;
     height: fit-content;
    padding: 0;
    margin: 0;
    background-color: transparent;
    max-width: calc(100% - 40px);
}

.code-options-texts-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem; /* 8px -> 0.5rem */
}

.code-option-title {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
    color: var(--unimed-secondary);
}

.code-option-buttons-subwrapper {
    gap: 0.5rem; /* 8px -> 0.5rem */
    width: 100%;
    display: flex;
    flex-direction: column;
}

.code-option-text {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    font-weight: 400;
    color: var(--unimed-secondary);
}

.code-option-device {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    font-weight: bold;
    color: var(--unimed-green);

    max-width: 100%;
}

/* --- Componente: Cartões de Verificação --- */

.kc-verification-card {
    padding: 0.9375rem 1.25rem; /* 15px -> 0.9375rem, 20px -> 1.25rem */
    border: 0.0625rem solid var(--unimed-secondary); /* 1px -> 0.0625rem */
    border-radius: 0.25rem; /* 4px -> 0.25rem */
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.kc-verification-card:hover {
    background-color: #FFFFFF;
    border-color: var(--unimed-green);
}

.kc-verification-icon-text {
    gap: 0.5rem; /* 8px -> 0.5rem */
    align-items: center;
}

.kc-verification-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.kc-verification-title {
    font-size: 1rem; /* 16px -> 1rem */
    color: var(--unimed-secondary);
    font-weight: bold;
}

/* --- Componente: Ajuda/Recuperação --- */

#rec-acc-instructions {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    font-weight: 400;
    margin: 0;
}

#free-call-warn {
    font-family: 'Unimed Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem; /* 16px -> 1rem */
    margin:0;
}

.contact-item {
    gap: 0.5rem; /* 8px -> 0.5rem */
    display: flex;
    flex-direction: row;
    align-items: center;
}

#reset-pass-text {
    font-size: 1rem; /* 16px -> 1rem */
    font-family: 'Unimed Sans', sans-serif;
    font-weight: 400;
    text-align: center;
    margin: 0;
    width: 100%;
}


/* ========================================
 Ícones
======================================== */

.material-symbols-outlined {
    width: auto;
    align-items: center;
    text-align: center;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.small-dot {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 0.9375rem !important; /* 15px -> 0.9375rem */
    color: var(--unimed-light-secondary);
}

.big-error-icon {
    color: var(--unimed-danger-title);
    font-size: 3rem; /* 48px -> 3rem */
}

.error-help-icon {
    font-size: 1.25rem; /* 20px -> 1.25rem */
    margin: 0.25rem; /* 4px -> 0.25rem */
    margin-bottom: 1.375rem; /* 22px -> 1.375rem */
    color: #863A00;
}

.big-success-icon {
    font-size: 2.5rem; /* 40px -> 2.5rem */
    color: var(--unimed-green-dark);
}

.error-icon {
    font-size: 1rem;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    color: var(--unimed-danger);
    vertical-align: middle;
    transform: translateY(-1px);
    display: inline-block;
}

.bigger-icon {
    font-size: 3rem;
}

.thiner-icon {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.gray-icon {
    color: #808080
}

.secondary-icon {
    color: #404040
}

.arrow-icon {
    color: var(--unimed-green);
    margin-top: 1.5625rem; /* 25px -> 1.5625rem */
}

.mail-icon {
    color: var(--unimed-green);
}

.phone-icon {
    color: var(--unimed-green);
}

.toggle-password-icon {
    font-size: 1.5rem; /* 24px -> 1.5rem */
    font-size: 24px;
    color: var(--unimed-light-secondary);
}

.info-icon {
    color: #234584;
}

#recovery-acc-headset-icon {
    font-size: 1.25rem; /* 20px -> 1.25rem */
    margin: 0.25rem; /* 4px -> 0.25rem */
}

#deaf-img-help {
    height: 1.5rem; /* 24px -> 1.5rem */
    width: 1.5rem; /* 24px -> 1.5rem */
}

#whatsapp-icon {
    fill: var(--unimed-green);
    width: 1.75rem; /* 28px -> 1.75rem */
}

.contact-icon {
    width: 1.5rem; /* 24px -> 1.5rem */
    height: auto;
    color: var(--unimed-green) !important;
}

.kc-verification-arrow {
    font-size: 1.125rem; /* 18px -> 1.125rem */
    color: var(--unimed-green);
}

/* ========================================
 Classes Utilitárias (Helpers)
======================================== */
.extended-width-component {
    width: 100% !important;
}

.font-reduced {
    font-size: 1rem; /* 16px -> 1rem */
}

.disabled-timer {
    background-color: #e0e0e0;
    color: #5f5f5f;
    text-decoration-color: #5f5f5f;
    cursor: default;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

.green-text-color {
    color: var(--unimed-green-dark) !important;
}

.link-line-decoration {
    text-decoration: underline;
}

.kc-green-text-colored-data {
    color: var(--unimed-green);
}

/* ========================================
   Acessibilidade
======================================== */

/*Adicionar essa classe em tudo que for para somente o leitor de tela*/
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
 Handtalk
======================================== */
.DwnAb {
    min-height: 0  !important;
    min-width: 0 !important;
    width:50vw !important;
    position: static !important;
}

.jOEGMj.jOEGMj.jOEGMj, .gfJJhF.gfJJhF.gfJJhF{
    height: fit-content !important;
}

.gAPEuA{
    width: 100vw !important;
}


.iRzyve {
    top: 30vh !important;
}

.dsKRTV.dsKRTV.dsKRTV {
    height: 40vh !important;
    width: 25vh !important;
}

.iMuedj {
    width: 100% !important;
    height: auto !important;
    top: 1vh !important;
    left: 1vw !important;
    justify-content: flex-start !important;
}

.iMuedj svg, .sc-hwddKA svg, .sc-hwddKA svg, .cdtSzq svg {
    width: auto !important;
    height: 3vh !important;
}

.cdtSzq{
    height:auto !important;
    align-items: center !important;
}

.kVFoLL.kVFoLL.kVFoLL{
    margin: 1vh 1vw 0px 0px !important;
}

.kqNEdQ.kqNEdQ.kqNEdQ {
    width: 5vh !important;
    height: 5vh !important;
}

.fBcNwn, .bYKAsT{
    margin: 0 !important;
    align-items: center !important;
    justify-content: space-evenly !important;
    width: fit-content !important;
    height: auto !important;
    bottom: 1vh !important;
}

.kQChEZ{
    flex-wrap: wrap !important;
    border-radius: 0.75rem !important;
    align-items:center !important;
    height: auto !important;
}

.kAcZOe{
    overflow-x: clip !important;
    padding: 0.25rem 0.05rem 0.25rem 0.05rem !important;
}

/* ========================================
 Modal do PDF
======================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;
    padding: 1.25rem; /* 20px */
}

.modal-content {
    background: #fff;
    width: 80%;
    max-width: 56.25rem; /* 900px */
    height: 90%;
    border-radius: 0.75rem; /* 12px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 1.5625rem rgba(0, 0, 0, 0.25); /* 25px */
    padding: 1.5rem; /* 24px */
    gap: 1rem; /* 16px */
    align-items: end;
}

.close {
    font-size: 1.5rem; /* 24px */
    cursor: pointer;
    height: 1.5rem !important;
    background-color: transparent;
    border-radius: 0.5rem;
    border: 0.0625rem solid white;
    padding: 0;
}

.pdf-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #6d6d6d #d9d9d9; /* thumb | track */
}

/* Chrome, Edge, WebKit */
.pdf-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.pdf-scroll-container::-webkit-scrollbar-track {
    background: #d9d9d9;
    border-radius: 20px;
}

.pdf-scroll-container::-webkit-scrollbar-thumb {
    background: #6d6d6d;
    border-radius: 20px;
}

#pdfModal {
    overflow: auto;
}

#pdfModal::-webkit-scrollbar { width: 0.4rem; }
#pdfModal::-webkit-scrollbar-track { background: #e5e5e5; }
#pdfModal::-webkit-scrollbar-thumb { background: #7a7a7a; border-radius: 0.5rem; }

#pdfModal * {
    scrollbar-width: thin;
    scrollbar-color: #7a7a7a #e5e5e5;
}


.pdf-page {
    display: block;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
}




/* ========================================
 Responsivo Mobile
======================================== */
@media (max-width: 770px) {
    .background-mask {
        display: none;
    }

    html, body {
        height: 100%;
    }

    .mobile-wrapper {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        background: #F5F5F5;
        padding-right: 0rem; 
        padding-left: 0rem;
        overflow-x: hidden;
    }

    .mobile-image-container {
        display: block;
        min-height: 25vw;
        aspect-ratio: 5 / 2.25;
        width: 100%;
        overflow: hidden;
        flex-shrink: 0;
    }

    .mobile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

    .mobile-form-wrapper {
        min-height: 80dvh;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: start;
        margin-top: -1.25rem; /* -20px -> -1.25rem */
        box-sizing: border-box;
        padding: 0rem; 
    }

    .main-page {
        position:static;
        max-width:none;
        width: 100%;
        height: -webkit-fill-available;
        padding: 1.25rem; /* 20px -> 1.25rem */
        gap: clamp(1.5rem, 3vw, 2rem); /* 24px/32px -> 1.5rem/2rem */
        border-radius: clamp(1rem, 4vw, 1.5rem) clamp(1rem, 4vw, 1.5rem) 0 0; /* 16px/24px -> 1rem/1.5rem */
        box-sizing: border-box;
        overflow-y: auto;
    }

    .unimed-logo {
        max-width: 11.25rem; /* 180px -> 11.25rem */
        max-height: 4.125rem; /* 66px -> 4.125rem */
    }

    .kc-primary-button {
        font-size: 1rem; /* 16px -> 1rem */
        padding: clamp(0.625rem, 3vh, 1rem) clamp(0.75rem, 4vw, 1.25rem); /* 10px/16px e 12px/20px */
        border-radius: clamp(0.375rem, 2vw, 0.625rem); /* 6px/10px -> 0.375rem/0.625rem */
        margin-top: 0.5rem; /* 8px -> 0.5rem */
    }

    .login-input {
        padding: clamp(0.375rem, 2vh, 0.75rem) clamp(0.625rem, 4vw, 1rem); /* 6px/12px e 10px/16px */
        font-size: 1rem; /* 16px -> 1rem */
    }

    .login-input[type="password"]{
        padding-bottom:clamp(0.625rem, 2vh, 1rem); /* 10px/16px */
    }

    .login-forgot-password {
        font-size: 0.8125rem; /* 13px -> 0.8125rem */
        margin-top: 0.25rem; /* 4px -> 0.25rem */
        text-align: right;
        display: block;
    }
}

@media (min-width: 1280px) {
    .main-page {
        position: absolute;
        left: 50%;
        transform: translateX(0); /* remove qualquer centralização anterior */
    }

    .background-mask {
        max-width: calc((50vw + 28rem) / 0.92109375);
    }
}

/* ========================================
  Responsivo Mobile (max-width: 280px)
  - Reduzido para apenas as alterações essenciais, 
  removendo duplicatas de 'width: 100%' e 'display: flex/column'
 ======================================== */
@media (max-width: 280px) {
    
    /* REMOVIDAS: header-logo-wrapper, header-title-wrapper, form-data-wrapper, 
    kc-form-label-group, kc-input-label-title, form-buttons-wrapper, etc.
    Porque a maioria das propriedades já está herdada/predefinida ou é 'width: 100%', 
    o que é o padrão de bloco. */

    .unimed-logo {
        max-width: 11.25rem;
        max-height: 4.125rem;
    }

    .kc-form-title {
        font-size: 1.5rem; /* 24px -> 1.5rem */
    }
    
    .kc-instruction-text {
        font-size: 1rem; /* 16px -> 1rem */
    }

    .kc-input-label {
        /* Apenas redefinindo o necessário */
        padding-bottom: 0.75rem; /* 12px -> 0.75rem (já estava no default, mas mantido para segurança) */
        padding-top: 0.75rem; /* 12px -> 0.75rem (já estava no default, mas mantido para segurança) */
    }

    .kc-primary-button {
        height: 3rem; /* 48px -> 3rem */
        padding: 0.5rem; /* 8px -> 0.5rem */
    }

    .kc-primary-button-text {
        font-size: 1.125rem; /* 18px -> 1.125rem */
    }

    .kc-input-error-text {
        font-size: 0.75rem; /* 12px -> 0.75rem */
        padding-bottom: 0; /* Removido o padding: 1rem da duplicação anterior */
        display: grid;
        grid-template-columns: auto 1fr;
        transform: none;
    }

    .error-icon {
        font-size: 0.875rem; /* 14px -> 0.875rem */
        transform: translateY(2px);
    }

    .kc-show-cpf {
        width: 8.125rem; /* 130px -> 8.125rem */
    }

    .kc-secondary-button {
        height: 2.5rem; /* 40px -> 2.5rem */
    }

    .kc-secondary-button-text {
        font-size: 1rem; /* 16px -> 1rem */
    }

    .kc-code-warning-block {
        padding: 1rem; /* 16px -> 1rem */
        gap: 0.5rem; /* 8px -> 0.5rem */
    }

    .big-error-icon {
        font-size: 2.125rem; /* 34px -> 2.125rem */
    }

    .kc-warning-block-title {
        font-size: 1.125rem; /* 18px -> 1.125rem */
    }

    .kc-warning-block-text {
        font-size: 1rem; /* 16px -> 1rem */
    }
    
    .kc-code-success-block {
        padding: 1.25rem; /* 20px -> 1.25rem */
    }

    .kc-success-content {
        gap: 0.5rem; /* 8px -> 0.5rem */
    }

    .big-success-icon {
        font-size: 2.125rem; /* 34px -> 2.125rem */
        margin-bottom: 0.375rem; /* 6px -> 0.375rem */
    }

    .kc-success-block-text {
        font-size: 1rem; /* 16px -> 1rem */
    }

    .kc-verification-data {
        font-size: 1rem; /* 16px -> 1rem */
    }

    .kc-password-requirements-title {
        padding-bottom: 0.5rem; /* 8px -> 0.5rem */
        font-size: 1rem; /* 16px -> 1rem */
    }

    .code-device-labels-info-wrapper {
        gap: 1rem; /* 16px -> 1rem */
    }

    .code-device-info-wrapper {
        padding: 1rem; /* 16px -> 1rem */
        gap: 0.5rem; /* 8px -> 0.5rem */
    }

    .code-device-info-texts-group {
        gap: 0.5rem; /* 8px -> 0.5rem */
    }

    .code-device-info-title,
    .code-device-info-text {
        font-size: 1rem; /* 16px -> 1rem */
    }

    .code-enter-wrapper {
        gap: 1rem; /* 16px -> 1rem */
    }

    .code-label-group {
        gap: 0.75rem; /* 12px -> 0.75rem */
    }

    .code-input-label {
        height: 3rem; /* 48px -> 3rem */
        border: 3px solid var(--unimed-green);
    }

    .code-valid-timer {
        font-size: 1rem; /* 16px -> 1rem */
    }

    .help-espec {
        margin-bottom: 0.5rem; /* 8px -> 0.5rem */
    }

    .error-help-icon {
        margin-bottom: 0.1875rem; /* 3px -> 0.1875rem */
    }

    .progress-bar li {
        width: 3.5625rem; /* 57px -> 3.5625rem */
    }

    .progress-bar-text {
        font-size: 0.875rem; /* 14px -> 0.875rem */
    }

    .font-reduced {
        font-size: 0.875rem; /* 14px -> 0.875rem */
    }

    .mini-instruction-text {
        font-size: 0.875rem; /* 14px -> 0.875rem */
    }

    .code-option-button {
        min-height: 9.0625rem; /* 145px -> 9.0625rem */
        padding: 1rem; /* 16px -> 1rem */
        gap: 0.5rem; /* 8px -> 0.5rem */
    }

    .code-option-text-icon {
        min-height: 6.25rem; /* 100px -> 6.25rem */
        gap: 0.5rem; /* 8px -> 0.5rem */
    }

    .code-option-text {
        font-size: 0.875rem; /* 14px -> 0.875rem */
    }

    .arrow-icon {
        margin-top: 2.5625rem; /* 41px -> 2.5625rem */
    }
}

@media (max-width: 400px) {
    .toast-message{
        top: 10% !important;
        right: 5% !important;
        min-width: 0;
    }

    .mobile-form-wrapper {
        justify-content: flex-start;
        align-items: flex-start;
        min-width: auto;
        width: 100%;
        overflow-x: auto;
    }

    .main-page {
        overflow-x: auto;
        min-width: auto;
        width: 100%;
        padding: 1rem;
        border-radius: 0.5rem;
    }
}

/* ========================================
   HandTalk - Posicionamento e dimensionamento
======================================== */

#accessibility-tools > div {
    top: 22.222vh !important;
    bottom: auto !important;
}

#accessibility-tools button,
#accessibility-tools [role="button"] {
    width: 42px;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px;
    max-height: 42px !important;
}

#accessibility-tools button,
#accessibility-tools [role="button"]:hover {
    width: auto !important;
    max-width: none !important;
}
