/* ============================================================
   Landing / Login — identidade visual Support Finance (mesmos tokens do dashboard:
   escuro #1A1D21, azul #0062E2, Roboto). Página anônima de entrada.
   ============================================================ */

:root {
    --c-primary: #A8D1FF;     /* azul bem claro (ação) — texto preto */
    --c-primary-600: #84BBF5; /* hover do azul bem claro */
    --c-secondary: #0062E2;   /* azul (marca) */
    --c-secondary-700: #0047A8;
    --c-red: #DC4343;
    --text: #2C2B2A;
    --text-muted: #8A8A8A;
    --border: #E6E6E6;
    --surface: #FFFFFF;
    --font-base: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ---------------- Hero / fundo da marca ---------------- */
.login-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-secondary-700) 55%, #001226 100%);
    color: #fff;
}

/* Brilho laranja decorativo (identidade da marca) */
.login-hero::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    right: -180px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 155, 255, .45) 0%, rgba(77, 155, 255, 0) 70%);
    pointer-events: none;
}
.login-hero::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    left: -160px;
    bottom: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 155, 255, .25) 0%, rgba(77, 155, 255, 0) 70%);
    pointer-events: none;
}

.login-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 460px;
    text-align: center;
}

.login-hero__logo { height: 40px; width: auto; margin-bottom: 28px; }

.login-hero__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.login-hero__text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 28px;
}

/* ---------------- Modal (Bootstrap restyle) ---------------- */
.login-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.login-modal .modal-header {
    background: var(--c-secondary);
    border-bottom: none;
    justify-content: center;
    padding: 22px 24px;
}
.login-modal__logo { height: 30px; width: auto; }

.login-modal .modal-body { padding: 26px 26px 8px; }
.login-modal .modal-footer { border-top: none; padding: 8px 26px 26px; gap: 10px; }

.login-modal__heading {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    text-align: center;
}
.login-modal__sub {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 20px;
}

.login-field { margin-bottom: 16px; }
.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.login-field .form-control,
.login-field .form-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.login-field .form-control:focus,
.login-field .form-select:focus {
    outline: none;
    border-color: var(--c-secondary);
    box-shadow: 0 0 0 3px rgba(0, 98, 226, .15);
}
.login-field input[readonly] { background: #F5F5F5; color: var(--text-muted); }

.login-field .text-danger { display: block; font-size: 12px; color: var(--c-red); margin-top: 5px; }

/* Botões */
.login-btn {
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.login-btn--primary { background: var(--c-primary); color: #1A1D21; flex: 1 1 auto; }
.login-btn--primary:hover { background: var(--c-primary-600); }
.login-btn--ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.login-btn--ghost:hover { background: #F5F5F5; color: var(--text); }

/* Rodapé com "Esqueci a senha" à esquerda + botão à direita */
.login-modal__foot { justify-content: space-between; }
.login-modal__foot .login-btn--primary { flex: 0 0 auto; }
.login-link {
    color: var(--c-secondary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.login-link:hover { text-decoration: underline; }

/* ---------------- Cartão autônomo (fora do modal Bootstrap) — recuperação de senha ---------------- */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.login-card__header {
    background: var(--c-secondary);
    display: flex;
    justify-content: center;
    padding: 22px 24px;
}
.login-card__logo { height: 30px; width: auto; }
.login-card__body { padding: 26px 26px 8px; }
.login-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 26px 26px;
}
.login-card__foot .login-btn--primary { flex: 0 0 auto; }

/* Passo/instrução */
.login-steps { font-size: 12px; color: var(--text-muted); text-align: center; margin: 0 0 4px; font-weight: 700; }

/* Dica sob um campo */
.login-hint { font-size: 12px; color: var(--text-muted); margin: -8px 0 16px; }

/* Escolha de canal (e-mail / SMS) */
.login-channels { display: flex; gap: 10px; margin-bottom: 16px; }
.login-channel {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    transition: border-color .12s ease, background .12s ease;
}
.login-channel input { accent-color: var(--c-secondary); }
.login-channel:has(input:checked) { border-color: var(--c-secondary); background: rgba(0, 98, 226, .06); }

/* Mensagem de sucesso */
.login-success { text-align: center; padding: 8px 0 4px; }
.login-success__icon {
    width: 56px; height: 56px; margin: 0 auto 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(74, 171, 101, .12); color: #4AAB65;
    font-size: 28px; font-weight: 700;
}
.login-success__title { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.login-success__text { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }

/* Botão de entrada no hero (caso o usuário feche o modal) */
.login-hero__cta {
    height: 48px;
    padding: 0 32px;
    border-radius: 8px;
    border: none;
    background: var(--c-primary);
    color: #1A1D21;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s ease;
}
.login-hero__cta:hover { background: var(--c-primary-600); }

/* Alerta de erro */
.login-alert {
    background: rgba(220, 67, 67, .1);
    border: 1px solid rgba(220, 67, 67, .35);
    color: #c23030;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .login-hero__title { font-size: 24px; }
}
