:root {
    --navy: #0B2850;
    --navy-deep: #071B36;
    --navy-mid: #193966;
    --gold: #FFC72C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at 15% 20%, rgb(194 142 28 / 18%), #ffc61600 35%), 
    radial-gradient(circle at 85% 80%, rgb(194 142 28 / 18%), transparent 40%), 
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 45%, #12325F 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
}

/* Safe-areas somente no iOS (iPhone) */
@supports (-webkit-touch-callout: none) {
    body {
        padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
}

a { text-decoration: none; color: #fff; }

main {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.25s ease;
}

.div_logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
}

.div_logo [data-lucide],
.div_logo svg {
    width: 38px;
    height: 38px;
    color: var(--gold);
    stroke-width: 1.75;
}

.div_logo > span {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
}

.div_logo .cat { color: #fff; }
.div_logo .matches { color: var(--gold); }

.img_logo_login {
    width: 220px;
    margin-bottom: 0.75rem;
}

.titulo_logo {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    line-height: 1.45;
    max-width: 300px;
}

.bloco_boas_vindas {
    text-align: center;
    margin-top: 0.8rem;
    margin-bottom: 1rem; 
}

.bloco_boas_vindas h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}

.descricao_login {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

.div_inputs_autenticacao {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.div_input_icone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    transition: 0.2s;
}

.div_input_icone i {
    color: var(--gold);
    width: 18px;
    text-align: center;
}

.div_input_icone:focus-within {
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
    box-shadow: none;
}

.input_autenticacao {
    width: 100%;
    background: transparent !important;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    caret-color: var(--gold);
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.input_autenticacao::placeholder { color: rgba(255,255,255,0.45); }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    caret-color: var(--gold) !important;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0 1000px transparent inset !important;
}

.div_input_icone i.fa-eye,
.div_input_icone i.fa-eye-slash {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255,255,255,0.55);
}

.btn_autenticacao {
    background: var(--gold);
    border: none;
    border-radius: 12px;
    width: 100%;
    padding: 0.8rem;
    color: var(--navy-deep);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn_autenticacao:active { transform: scale(0.99); }

.div_navegacao_autenticacao {
    text-align: center;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.texto_navegacao_autenticacao {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    width: fit-content;
}


.role-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.role-option {
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    color: #fff;
}

.role-option i {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 0.45rem;
    display: block;
}

.role-option strong {
    display: block;
    font-size: 14px;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.role-option span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.3;
}

.role-option.ativo {
    border-color: var(--gold);
    background: rgba(255, 192, 54, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 192, 54, 0.15);
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-welcome-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.steps {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.steps span {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
}

.steps span.ativo { background: var(--gold); }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show { display: flex; }

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.6rem 1.3rem;
    text-align: center;
    color: #1A2433;
    width: 100%;
    max-width: 330px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
    animation: popIn 0.25s ease;
}

.modal-content h2 {
    margin: 0.4rem 0;
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
}

.modal-content p {
    font-size: 14px;
    color: #5B677A;
}

.icon-sucesso, .icon-erro {
    font-size: 48px;
    margin-bottom: 0.4rem;
}

.icon-sucesso { color: var(--gold); }
.icon-erro { color: #E74C3C; }

.btn_modal {
    margin-top: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    padding: 0.6rem;
    cursor: pointer;
    width: 100%;
}

.btn_modal_erro { background: #E53935; color: #fff; }
.btn_modal_sucesso {
    background: linear-gradient(90deg, var(--gold), var(--gold));
    color: var(--navy-deep);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.link_termos {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal-termos {
    max-width: 360px;
    text-align: left;
}

.modal-termos h2 {
    text-align: center;
}

.conteudo_termos {
    max-height: 45vh;
    overflow-y: auto;
    margin: 0.75rem 0 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.conteudo_termos p {
    font-size: 13px;
    color: #5B677A;
    line-height: 1.5;
    text-align: left;
}
