/* The demo's front door: the Verric sign-in screen in the Business Terminal palette.
   Loaded last, so it inherits the teal/navy tokens identity.css settles on rather
   than the burgundy the private-equity dashboard uses. No inline styles anywhere —
   the deployment's Content-Security-Policy is style-src 'self'. */
.auth { --navy: #0E6E9E; --mint: #00758A; --deep: #00758A; min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 20px clamp(20px, 4.5vw, 64px); border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.auth-lockup { display: flex; align-items: center; gap: 12px; }
.auth-mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; background: var(--navy); color: var(--mint); border-radius: 9px 3px 9px 3px; font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.auth-word { font-size: 25px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.auth-word small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .13em; margin-top: 7px; color: var(--muted); }
.auth-switch { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.auth-switch p { margin: 0; }

.auth-layout { flex: 1; width: min(100%, 1280px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 432px); align-items: center; gap: clamp(40px, 6vw, 96px); padding: 48px clamp(20px, 4.5vw, 64px); }
.auth-story { max-width: 500px; }
.auth-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.auth-eyebrow::before { content: ''; width: 24px; height: 2px; flex: 0 0 auto; background: var(--accent); }
.auth-story h2 { font-size: clamp(31px, 3.4vw, 45px); font-weight: 600; line-height: 1.14; letter-spacing: -.045em; }
.auth-story h2 span { display: block; color: var(--accent); }
.auth-story > p { max-width: 380px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* An illustrative work board. Fictional, and deliberately not a live figure. */
.auth-preview { margin-top: 36px; max-width: 408px; padding: 20px 20px 0; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 9px; background: var(--surface); }
.auth-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.auth-preview-top span:first-child { color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.auth-preview-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--accent); font-size: 10px; }
.auth-preview-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.auth-preview h3 { font-size: 18px; letter-spacing: -.035em; font-weight: 600; }
.auth-preview-lines { display: flex; flex-direction: column; gap: 7px; margin: 13px 0 22px; }
.auth-preview-lines i { height: 4px; width: 88%; border-radius: 2px; background: var(--line); }
.auth-preview-lines i:last-child { width: 60%; }
.auth-preview-items { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.auth-preview-items div { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; font-size: 11px; color: var(--muted); }
.auth-preview-items div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.auth-preview-items svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-story-foot { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; color: var(--muted); font-size: 12px; }
.auth-story-foot span + span::before { content: '/'; padding-right: 12px; color: var(--line-strong); }

.auth-pane { width: 100%; min-width: 0; }
.auth-card { padding: 30px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 9px; background: var(--surface); }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: 27px; font-weight: 600; letter-spacing: -.04em; line-height: 1.25; }
.auth-head p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form { display: grid; gap: 22px; }
.auth-fields { display: grid; gap: 15px; min-width: 0; }
.auth-field { display: grid; gap: 7px; min-width: 0; }
.auth-field span, .auth-field label { font-size: 13px; font-weight: 500; }
.auth-field input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 15px; }
.auth-field input::placeholder { color: var(--faint); }
.auth-field input:hover { border-color: var(--muted); }
.auth-field input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-submit { width: 100%; }
.auth-error { padding: 12px 14px; border: 1px solid #F6C9DB; border-left: 3px solid var(--red); border-radius: 5px; background: #FCE7EF; color: #BE2A5B; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.auth-spinner { width: 15px; height: 15px; flex: 0 0 auto; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-foot { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 4.5vw, 64px); color: var(--muted); font-size: 11px; }
button.user-avatar { cursor: pointer; }

@media(max-width:1050px) { .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 36px; } .auth-story h2 { font-size: 34px; } }
/* On a narrow screen the task comes first and the promotional column goes away. */
@media(max-width:860px) { .auth-layout { display: flex; justify-content: center; padding: 36px 20px; } .auth-story { display: none; } .auth-pane { max-width: 432px; } }
@media(max-width:560px) { .auth-top { min-height: 76px; padding: 16px 18px; } .auth-word { font-size: 23px; } .auth-switch { gap: 0; } .auth-switch p { display: none; } .auth-layout { padding: 26px 16px; align-items: flex-start; } .auth-card { padding: 24px 20px; } .auth-head h1 { font-size: 25px; } .auth-foot { padding: 16px 18px; font-size: 10px; } .auth-foot span:last-child { display: none; } }
@media(prefers-reduced-motion:reduce) { .auth-spinner { animation: none; } }

/* Invite join screen: choose new account or existing sign-in. */
.auth-switch[hidden] { display: none; }
.auth-join-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
