/* TeC — css/auth-pages.css
 * Estilos de auth pages. A ordem da cascata e os seletores fazem parte do contrato com os templates ativos.
 */

.auth-layout {
    --auth-c1: #0f172a;
    --auth-c2: #1d4ed8;
    --auth-c3: #f59e0b;
    --auth-bg: #f3f6fb;
    --auth-surface: #ffffff;
    --auth-border: #d6dfeb;
    --auth-text: #0f172a;
    --auth-muted: #4b5563;
    background: radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 38%), var(--auth-bg);
    color: var(--auth-text);
    font-family: var(--op-font-ui);
    margin: 0;
    min-height: 100vh;
}

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

.auth-card {
    width: min(680px, 100%);
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.auth-card--login {
    width: min(360px, 100%);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-brand img {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
}

.auth-brand strong {
    display: block;
    font-size: 1.14rem;
}

.auth-subtitle {
    color: var(--auth-muted);
    margin-top: 4px;
    margin-bottom: 0;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    text-align: center;
}

.auth-card p {
    color: var(--auth-muted);
    text-align: center;
}

.auth-card a {
    color: var(--auth-c2);
}

.auth-card table {
    width: 100%;
    border-collapse: collapse;
}

.auth-card td,
.auth-card th {
    display: block;
    width: 100%;
    padding: 0;
}

.auth-card label {
    display: block;
    font-size: 0.92rem;
    margin-top: 11px;
    margin-bottom: 6px;
}

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

.auth-field {
    display: grid;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfccdf;
    border-radius: 9px;
    min-height: 40px;
    padding: 8px 10px;
    background: #fff;
    color: var(--auth-text);
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    outline: 2px solid rgba(29, 78, 216, 0.2);
    border-color: var(--auth-c2);
}

.auth-card .helptext {
    display: block;
    margin-top: 5px;
    color: var(--auth-muted);
    font-size: 0.86rem;
}

.auth-card ul.errorlist {
    margin: 6px 0 2px;
    padding: 0;
    list-style: none;
    color: #b91c1c;
    font-size: 0.88rem;
}

.auth-card .btn,
.auth-card button,
.auth-card input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 9px;
    border: 1px solid var(--auth-c2);
    background: var(--auth-c2);
    color: #fff;
    padding: 0 14px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-card .btn-secondary,
.auth-card .btn.btn-secondary {
    background: transparent;
    color: var(--auth-c1);
    border-color: var(--auth-c1);
}

.auth-card .btn-link {
    padding: 0;
    min-height: 0;
    border: 0;
    background: transparent;
    color: var(--auth-c2);
}

.auth-card .btn-block {
    width: 100%;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.auth-actions--single .btn,
.auth-actions--single button,
.auth-actions--single input[type="submit"] {
    width: 100%;
}

.auth-note {
    margin-top: 12px;
    font-size: 0.92rem;
}

.auth-note--compact {
    margin-top: 10px;
    margin-bottom: 0;
}

.auth-messages {
    margin: 12px 0;
}

.auth-messages ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-messages li {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #881337;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 18px 14px;
    }
}
