/**
 * Caminho: /assets/css/auth.css
 * Descrição: Layout das telas públicas de login, cadastro e primeiro acesso.
 */

:root {
    --ag-primary: #2563eb;
    --ag-primary-dark: #1d4ed8;
    --ag-bg: #f3f6fb;
    --ag-border: #e2e8f0;
    --ag-muted: #64748b;
    --ag-text: #111827;
    --ag-radius: 10px;
    --ag-radius-sm: 7px;
}

* { box-sizing: border-box; }

body.auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.12), transparent 26rem),
        radial-gradient(circle at bottom right, rgba(6,182,212,.10), transparent 28rem),
        linear-gradient(180deg, #f8fbff 0%, var(--ag-bg) 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ag-text);
}

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

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius);
    box-shadow: 0 24px 70px rgba(15,23,42,.14);
    padding: 28px;
}

.auth-brand { display: flex; align-items: center; gap: 12px; }

.auth-logo {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--ag-radius-sm);
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-weight: 900;
}

.auth-brand strong,
.auth-brand small { display: block; }
.auth-brand strong { font-size: 1.15rem; line-height: 1.1; }
.auth-brand small { color: var(--ag-muted); }

.auth-title { margin: 24px 0 18px; }
.auth-title h1 { font-size: 1.45rem; font-weight: 900; margin: 0 0 6px; }
.auth-title p { color: var(--ag-muted); margin: 0; }

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

.auth-switch label { margin: 0; cursor: pointer; }
.auth-switch input { display: none; }

.auth-switch span {
    min-height: 42px;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 750;
    color: var(--ag-muted);
    background: #f8fafc;
}

.auth-switch input:checked + span {
    border-color: var(--ag-primary);
    background: #dbeafe;
    color: var(--ag-primary-dark);
}

.form-control,
.btn,
.alert { border-radius: var(--ag-radius-sm); }

.btn-primary {
    background: var(--ag-primary);
    border-color: var(--ag-primary);
    font-weight: 800;
}

.btn-primary:hover {
    background: var(--ag-primary-dark);
    border-color: var(--ag-primary-dark);
}

.form-label { font-weight: 720; }

.auth-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.auth-links a {
    color: var(--ag-primary-dark);
    font-weight: 720;
    text-decoration: none;
}

@media (max-width: 480px) {
    .auth-card { padding: 22px; }
    .auth-switch { grid-template-columns: 1fr; }
}
