/**
 * Auth CSS (Login/Recuperar/Reset)
 * - Mobile-first, foco em legibilidade e acessibilidade.
 * - Ajuste a cor de marca em :root.
 */
:root {
    --brand: #990100;
    /* cor principal */
    --bg: #f4f6f9;
    /* fundo */
    --text: #333;
    /* texto padrão */
    --muted: #6b7280;
    /* texto secundário */
    --card: #fff;
    /* fundo dos cards */
    --error: #b91c1c;
    /* vermelho */
    --ok: #16a34a;
    /* verde */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Container principal: centraliza vertical/horizontal em qualquer tela */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /* espaçamento lateral em mobile */
}

/* Cartão do formulário */
.card {
    width: 100%;
    max-width: 420px;
    /* bom para thumb + teclado em celular */
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    padding: 28px;
}

/* Branding */
.brand {
    text-align: center;
    margin-bottom: 16px;
}

.brand .logo {
    width: 120px;
    height: auto;
}

/* Título/subtítulo */
h1 {
    text-align: center;
    font-size: 22px;
    margin: 8px 0 4px;
}

.sub {
    text-align: center;
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 14px;
}

/* Form */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.group {
    margin-bottom: 16px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(153, 1, 0, .12);
}

/* Linha com campo + botão de toggle */
.input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.toggle {
    white-space: nowrap;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
}

.toggle button {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #444;
}

/* Botão principal */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
}

.btn:hover {
    filter: brightness(.96);
}

/* Área de ações secundárias */
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 16px;
}

.link {
    color: var(--brand);
    text-decoration: none;
    font-size: 14px;
}

/* Mensagens (flash) */
.msg {
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.msg.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.msg.ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.muted {
    color: var(--muted);
    font-size: 12px;
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
}

.meter {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 8px;
}

.meter .bar {
    height: 100%;
    width: 0;
    background: #ef4444;
    transition: width .2s ease, background .2s ease;
}


/* Touch-friendly */
button,
a {
    touch-action: manipulation;
}

/* Redução de movimento (acessibilidade) */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Vermelho para mensagens de erro abaixo do campo */
.error-text {
    color: #dc3545;
    /* vermelho "danger" */
    font-size: .875rem;
    margin-top: .25rem;
}

/* Realça o input com erro (opcional) */
.is-invalid {
    border-color: #dc3545 !important;
    outline: none;
    box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .15);
}

/* Caixa de erro geral (session('error')) */
.msg.error {
    background: #fde8ea;
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
}

/* Sucesso (se quiser harmonizar) */
.msg.ok {
    background: #e9f7ef;
    color: #0f5132;
    border: 1px solid #badbcc;
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
}