* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.app-shell {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.home {
    align-items: center;
}

.hero-card,
.form-card {
    width: 100%;
    max-width: 430px;
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* LOGO GRANDE - telas públicas: index, login, registro, verificar e-mail, recuperar senha */
.hero-card::before,
.form-card::before {
    content: "";
    display: block;
    width: 190px;
    height: 72px;
    margin: 0 auto 22px;
    background-image: url("/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Remove o ícone antigo quando a logo estiver presente */
.brand-badge {
    display: none;
}

/* LOGO PEQUENA - páginas internas */
.dashboard-shell::before,
.creditos-shell::before,
.extrato-shell::before,
.perfil-shell::before,
.veiculos-shell::before,
.recarga-shell::before {
    content: "";
    display: block;
    width: 150px;
    height: 48px;
    margin: 0 auto 18px;
    background-image: url("/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.1;
}

p,
.subtitle {
    color: #cbd5e1;
    line-height: 1.5;
}

.actions {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #22c55e;
    color: #052e16;
}

.btn-secondary {
    background: #1f2937;
    color: #f8fafc;
}

.back-link {
    color: #93c5fd;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 18px;
}

form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.form-secondary {
    margin-top: 12px;
}

label {
    display: grid;
    gap: 7px;
    color: #f8fafc;
    font-weight: 700;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #334155;
    background: #020617;
    color: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #22c55e;
}

small {
    color: #94a3b8;
    font-weight: 400;
}

.alert {
    border-radius: 14px;
    padding: 12px;
    margin-top: 16px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.35);
    color: #fecaca;
}

.alert-success {
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.35);
    color: #bbf7d0;
}

.is-valid {
    color: #86efac;
}

.is-invalid {
    color: #fca5a5;
}

@media (min-width: 700px) {
    body::before {
        content: "Sistema otimizado para celular";
        position: fixed;
        right: 16px;
        bottom: 16px;
        color: #64748b;
        font-size: 12px;
    }
}
