/* ===========================================================================
   BORAI DELIVERY — ENTRAR, CADASTRAR EMPRESA E RECUPERAR SENHA
   Refeito em 19/10/2026 no padrão do site: as cores do logo (azul-marinho +
   azul), as mesmas do app. Antes era laranja, a identidade antiga.
   Os nomes das classes são os mesmos de sempre: os scripts das páginas
   (js/pages/auth/*.js) não mudaram.
   =========================================================================== */

.auth-page {
    --navy: #0B1B33;
    --navy-mid: #13294A;
    --electric: #1E8FFF;
    --on-navy-muted: #9DB2CF;
    --primary: #1565D8;
    --primary-soft: #EAF2FF;
    --text: #0F1C2E;
    --muted: #5F6B7A;
    --border: #E2E8F0;

    min-height: 100vh;
    background: linear-gradient(180deg, var(--navy) 0, var(--navy) 470px, #F5F7FA 470px);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-header {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.auth-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--electric);
    background: var(--navy-mid);
    font-weight: 900;
}

.auth-voltar {
    color: var(--on-navy-muted);
    font-weight: 600;
    text-decoration: none;
}

.auth-voltar:hover { color: #fff; }

.auth-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 56px;
    align-items: start;
}

.auth-presentation {
    padding: 28px 4px;
    color: #fff;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--navy-mid);
    color: var(--electric);
    font-weight: 700;
    font-size: 0.88rem;
}

.auth-presentation h1 {
    margin: 18px 0 14px;
    max-width: 640px;
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.auth-presentation > p {
    max-width: 570px;
    color: var(--on-navy-muted);
    font-size: 1.06rem;
    line-height: 1.6;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    margin-top: 26px;
    background: var(--navy-mid);
    border-radius: 18px;
    padding: 18px;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-benefit-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(30, 143, 255, 0.16);
    color: var(--electric);
    font-weight: 800;
    font-size: 0.9rem;
}

.auth-benefit strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
}

.auth-benefit span {
    color: var(--on-navy-muted);
    font-size: 0.93rem;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(11, 27, 51, 0.18);
}

.auth-card h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
}

.auth-card-subtitle {
    margin: 8px 0 24px;
    color: var(--muted);
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    font-weight: 700;
    font-size: 0.92rem;
}

.auth-field input,
.auth-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #D5DDE8;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 101, 216, 0.14);
}

.auth-password-wrap { position: relative; }

.auth-password-wrap input { padding-right: 48px; }

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
    font-size: 1rem;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-check input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.auth-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

/* .auth-button vale para <button> e para <a> (o "Ir para o login"). */
.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 13px;
    padding: 12px 20px;
    color: #fff;
    background: var(--primary);
    font: inherit;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(21, 101, 216, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.auth-button:hover {
    background: var(--navy);
    transform: translateY(-1px);
}

.auth-button:focus-visible {
    outline: 3px solid var(--electric);
    outline-offset: 3px;
}

.auth-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.auth-message {
    display: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-message.is-visible { display: block; }

.auth-message.is-error {
    color: #A32121;
    background: #FDECEC;
    border: 1px solid #F6C9C9;
}

.auth-message.is-success {
    color: #17622E;
    background: #E7F6EC;
    border: 1px solid #C9EFD4;
}

.auth-message.is-warning {
    color: #815107;
    background: #FFF6E0;
    border: 1px solid #F3DFAD;
}

.auth-footer-text {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
}

.auth-nota-cliente {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--navy);
    font-size: 0.9rem;
    text-align: center;
}

.auth-status-card {
    display: none;
    text-align: center;
    padding: 18px 0 4px;
}

.auth-status-card.is-visible { display: block; }

.auth-status-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.8rem;
}

.auth-rodape {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 0.88rem;
}

.auth-rodape a { color: var(--primary); font-weight: 600; text-decoration: none; }

@media (max-width: 920px) {
    .auth-page { background: linear-gradient(180deg, var(--navy) 0, var(--navy) 300px, #F5F7FA 300px); }
    .auth-main { grid-template-columns: 1fr; gap: 18px; }
    .auth-presentation { padding: 8px 0 0; }
    .auth-presentation h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .auth-benefits { display: none; }
}

@media (max-width: 620px) {
    .auth-main { width: min(100% - 22px, 1180px); padding-top: 4px; }
    .auth-card { padding: 24px 18px; border-radius: 19px; }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-presentation > p { font-size: 1rem; }
}

/* Logo Borai Delivery (23/10/2026): a imagem ocupa a caixinha da marca. */
.borai-marca-img { width: 86%; height: 86%; object-fit: contain; display: block; }
