/*
 * Visual das telas do Valuo Identity = V11.1 aprovada (valuo-escolar-prototipo-v11-1: blocos "auth-*" e
 * "V11 — approved Valuo Identity login" / "V11.1 — logo alignment"). Só CSS: sem JavaScript, sem inline (CSP).
 */
:root { --ink: #172033; --muted: #697386; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--ink); font: 14px/1.45 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #fff; }

.auth-screen { display: grid; min-height: 100vh; grid-template-columns: minmax(380px, .95fr) minmax(460px, 1.05fr);
    background: linear-gradient(135deg, #fbfcff 0%, #f7f8ff 48%, #fff 100%); }

.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start;
    padding: 58px 7vw; color: #0f1d42; background: transparent; }
.auth-brand::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 110px; left: -210px; bottom: -245px;
    transform: rotate(45deg); background: linear-gradient(135deg, rgba(151, 42, 255, .16), rgba(86, 183, 255, .18)); }
.auth-logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; margin-bottom: 74px; }
.auth-symbol { display: block; width: 104px; height: 72px; background: url("valuo-symbol.png") center / contain no-repeat; }
.auth-wordmark { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.055em; color: #0b0b0d; }
.auth-copy { position: relative; z-index: 1; max-width: 520px; }
.auth-copy h1 { margin: 0 0 18px; font-size: 48px; line-height: 1.08; letter-spacing: -.035em; color: #0d1b40; }
.auth-copy p { margin: 0; max-width: 500px; font-size: 18px; line-height: 1.55; color: #667085; }
.auth-benefits { position: relative; z-index: 2; display: grid; gap: 20px; margin-top: 34px; }
.auth-benefit { display: flex; align-items: center; gap: 14px; }
.auth-benefit-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #f0efff; color: #5b4cf0;
    font-size: 20px; font-weight: 800; }
.auth-benefit strong { display: block; color: #101828; font-size: 14px; }
.auth-benefit span { display: block; margin-top: 3px; color: #667085; font-size: 12px; }
.auth-foot { position: relative; z-index: 1; margin-top: auto; font-size: 11px; color: #98a2b3; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 42px 6vw; background: transparent; }
.auth-card { width: 100%; max-width: 510px; padding: 42px; border: 1px solid #e5e8f0; border-radius: 18px;
    background: rgba(255, 255, 255, .92); box-shadow: 0 18px 50px rgba(31, 41, 78, .06); }
.auth-card h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; color: #101828; }
.auth-card > p { margin: 0 0 28px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.identity-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 11px; color: #667085; }
.identity-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #12b76a; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: #344054; }
.auth-field input { width: 100%; padding: 14px 15px; border: 1px solid #dfe3eb; border-radius: 10px; background: #fff; color: #172033;
    font: inherit; outline: none; }
.auth-field input:focus { border-color: #6d63ee; box-shadow: 0 0 0 3px rgba(99, 102, 241, .1); }
.auth-primary { width: 100%; padding: 14px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #4d46e5, #2878ee);
    color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.auth-primary:focus-visible, .context-card:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
a.auth-primary { display: block; text-align: center; text-decoration: none; }
a.context-card { color: inherit; text-decoration: none; }
.auth-secondary { display: block; width: 100%; margin-top: 9px; padding: 13px 14px; border: 1px solid #dfe3eb; border-radius: 10px;
    background: #fff; color: #172033; font: inherit; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
.auth-secondary:focus-visible, .auth-link:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; font-size: 13px; }
.auth-check { display: flex; align-items: center; gap: 7px; color: #344054; }
.auth-check input { width: 16px; height: 16px; margin: 0; accent-color: #4d46e5; }
.auth-link { border: 0; background: none; padding: 0; color: #4f46e5; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.auth-hint { margin: -8px 0 16px; font-size: 12px; color: var(--muted); }
.auth-notice { margin: -12px 0 18px; padding: 10px 12px; border: 1px solid #c7d7fe; border-radius: 9px; background: #eef4ff; color: #2b3a8c;
    font-size: 13px; }
.auth-inline-form { margin: 0; }
.auth-alert { margin: -12px 0 18px; padding: 10px 12px; border: 1px solid #fecdca; border-radius: 9px; background: #fef3f2; color: #b42318;
    font-size: 13px; }

/* escolha de contexto: escola · produto · papel */
.context-list { display: block; }
.context-card { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; padding: 14px;
    border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.context-card:hover { border-color: #8d85f5; background: #fafaff; }
.context-text { min-width: 0; }
.context-card strong { display: block; overflow-wrap: anywhere; }
.context-card small { display: block; margin-top: 3px; color: #667085; overflow-wrap: anywhere; }
.context-arrow { flex: none; color: #667085; }

/* convite: dados do acesso oferecido */
.auth-details { margin: 0 0 18px; }
.detail { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 11px 13px; border: 1px solid #eaecf0;
    border-radius: 10px; background: #fafbfc; }
.detail dt { color: #667085; font-size: 12px; }
.detail dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

@media (max-width: 800px) {
    .auth-screen { grid-template-columns: 1fr; }
    .auth-brand { display: flex; padding: 28px 24px 0; }
    .auth-logo { margin-bottom: 22px; gap: 10px; }
    .auth-symbol { width: 72px; height: 50px; }
    .auth-wordmark { font-size: 36px; }
    .auth-copy, .auth-benefits, .auth-foot { display: none; }
    .auth-panel { align-items: flex-start; padding: 20px 20px 90px; }
    .auth-card { padding: 28px 22px; border-radius: 16px; box-shadow: none; }
}
