/* Shared by login.html, forgot.html and reset.html. Tokens, fonts, base
   element rules and .btn come from base.css (loaded first — see each
   page's <head>); this file only has the page-specific layout: the card,
   the brand row, the form controls and the small text-link buttons. */

body {
    padding: 24px 16px;
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--accent-blue), var(--accent-blue-hover));
    color: #fff;
    flex: none;
}

.brand-mark .mark {
    width: 100%;
    height: 100%;
    display: block;
}

.brand strong {
    display: block;
    font-size: 15px;
}

.brand span {
    color: var(--text-secondary);
    font-size: 13px;
}

h1 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.lead {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 20px;
}

label {
    display: block;
    font-weight: 600;
    margin: 16px 0 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

input {
    width: 100%;
    font: inherit;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: var(--focus-ring);
}

input.code {
    font-family: ui-monospace, "Cascadia Mono", monospace;
    font-size: 1.6rem;
    letter-spacing: 0.4em;
    text-align: center;
}

.card .btn {
    width: 100%;
    height: auto;
    margin-top: 22px;
    padding: 12px 16px;
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.link {
    font: inherit;
    background: none;
    border: none;
    color: var(--accent-blue);
    padding: 0;
    margin: 0;
    width: auto;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.link:hover:not(:disabled) {
    background: none;
    text-decoration: underline;
}

.link:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn:focus-visible,
.link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.msg {
    min-height: 1.4em;
    margin: 14px 0 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.msg.error {
    color: var(--accent-red);
}

.msg.info {
    color: var(--accent-green);
}

.hint {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 18px;
    line-height: 1.45;
}

.hint a {
    color: var(--accent-blue);
    font-weight: 600;
}

.notice {
    margin: 0 0 20px;
    padding: 10px 14px;
    background: var(--accent-info-bg);
    border: 1px solid color-mix(in srgb, var(--accent-info) 30%, transparent);
    border-radius: 10px;
    color: var(--accent-info);
    font-size: 0.88rem;
    line-height: 1.4;
}

[hidden] {
    display: none !important;
}

/* Footer line under the card, on every auth page (login, forgot, reset,
   signup): links to the two legal documents, always reachable without a
   session. */
.legal-links {
    margin: 18px 0 0;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.82rem;
}

.legal-links a {
    color: var(--text-tertiary);
}

.legal-links a:hover {
    color: var(--accent-blue);
}

/* Signup form's "Li e aceito..." checkbox row. */
.check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 0;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary);
    cursor: pointer;
}

.check input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0;
    flex: none;
}

.check a {
    color: var(--accent-blue);
    font-weight: 600;
}

/* International transfer consent (LGPD art. 33, VIII, since 6.27.0): a
   second checkbox, visually distinct from "Li e aceito" above, so the
   consent to storing data in the United States is specific and highlighted
   rather than bundled into the general terms acceptance. */
.check.highlight {
    background: var(--accent-info-bg);
    border: 1px solid color-mix(in srgb, var(--accent-info) 30%, transparent);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 12px;
}

/* Signup form: the two groups (Empresa / Sua conta) — the company is the
   thing being created, the account is the person signing in. */
#signupForm h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin: 20px 0 6px;
}
