/* Authentication pages (sign-in, invitations, verification, password reset) — WIP002 styling.
   Shares the approved TT Hoves / green / control tokens from workflow-studio.css. Every rule is scoped to .auth-page. */
.auth-page,.auth-page *,.auth-page *::before,.auth-page *::after{box-sizing:border-box}
.auth-page{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:100dvh;overflow:hidden;background:#fff;color:var(--studio-text);font-family:var(--font-ui);font-size:14px}
.auth-art{position:fixed;z-index:-2;inset:0;pointer-events:none;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fafcfb 100%)}
.auth-art svg{position:absolute;width:min(88vw,1120px);min-width:780px;height:auto;right:-180px;top:-350px;fill:var(--leaf);opacity:.04;transform:rotate(15deg)}
.auth-header{display:flex;align-items:center;width:calc(100% - 128px);max-width:1072px;min-height:88px;margin:0 auto;padding:24px 0;position:relative}
.auth-brand{display:inline-flex;align-items:center;gap:17px;text-decoration:none;color:#000;font-weight:400}
.auth-brand-cara{font-size:38px;font-weight:400;letter-spacing:-.045em;line-height:44px;color:#000}
.auth-brand-divider{flex:0 0 1px;width:1px;height:39px;background:#000}
.auth-socialtalent-logo{display:block;width:200px;height:auto;flex:0 0 auto}
.auth-main{position:relative;display:flex;flex-direction:column;align-items:center;flex:1;gap:20px;width:100%;padding:4px 24px 20px}
.auth-card{width:100%;max-width:500px;padding:36px 44px;border:1px solid var(--studio-divider);border-radius:12px;background:#fff;box-shadow:0 16px 40px rgb(2 39 31 / 7%),0 3px 8px rgb(48 49 61 / 4%)}
.auth-heading{margin-bottom:24px}
.auth-heading h1{margin:0;color:var(--studio-ink);font-size:24px;line-height:31px;font-weight:600;letter-spacing:-.025em;outline:none}
.auth-heading p{margin:10px 0 0;color:var(--studio-muted);font-size:14px;line-height:21px}
.auth-heading p strong{color:var(--studio-text);font-weight:500;overflow-wrap:anywhere}
.auth-form{display:flex;flex-direction:column;gap:18px;margin:0}
.auth-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.auth-field>label,.auth-label-row>label{color:var(--studio-text);font-size:13px;line-height:18px;font-weight:600}
.auth-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.auth-label-row .auth-link{font-size:12px;line-height:18px}
.auth-page .auth-field input{display:block;width:100%;min-width:0;height:42px;margin:0;border:1px solid var(--studio-border);border-radius:6px;background:#fff;padding:10px 12px;box-shadow:0 1px 2px rgb(48 49 61 / 3%);color:var(--studio-text);font:inherit;line-height:20px;outline:none}
.auth-page .auth-field input::placeholder{color:var(--studio-subtle);opacity:1}
.auth-page .auth-field input:hover{border-color:#bac6d5}
.auth-page .auth-field input:focus{border-color:var(--leaf);box-shadow:var(--field-focus-ring)}
.auth-page .auth-field input[aria-invalid=true]{border-color:#bd5555}
.auth-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.auth-password{position:relative}
.auth-page .auth-password input{padding-right:44px}
.auth-page .auth-reveal{position:absolute;inset:2px 3px 2px auto;display:grid;place-items:center;width:36px;border:0;border-radius:4px;background:transparent;color:var(--studio-muted);padding:0;cursor:pointer;box-shadow:none}
.auth-reveal:hover{color:var(--studio-ink);background:var(--studio-hover)}
.auth-reveal svg{width:17px;height:17px;stroke-width:1.65}
.auth-page .auth-link{color:var(--emerald);text-decoration:none;font-weight:500}
.auth-page .auth-link:hover{color:var(--forest);text-decoration:underline;text-underline-offset:3px}
.auth-page .auth-button{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;min-height:42px;padding:10px 14px;border:1px solid var(--studio-border);border-radius:6px;text-align:center;box-shadow:var(--studio-control-shadow);font-size:14px;line-height:20px;font-weight:600;cursor:pointer;text-decoration:none}
.auth-page .auth-button svg{width:16px;height:16px;flex:0 0 16px}
.auth-page .auth-primary{background:var(--emerald);border-color:var(--emerald);color:#fff}
.auth-page .auth-primary:hover{color:#fff;background:var(--forest);border-color:var(--forest);text-decoration:none}
.auth-primary>svg{stroke-width:1.8}
.auth-page .auth-secondary{background:#fff;color:var(--studio-text)}
.auth-page .auth-secondary:hover{background:var(--studio-hover);border-color:#bac6d5}
.auth-page .auth-secondary svg{width:18px;height:18px;flex-basis:18px}
.auth-providers{margin-top:20px}
.auth-divider{display:flex;align-items:center;gap:12px;margin-bottom:16px;color:var(--studio-subtle);font-size:12px;line-height:18px}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:var(--studio-divider)}
.auth-provider-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.auth-page .auth-sso{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;margin-top:10px;padding:10px 12px;min-height:42px;border:1px solid var(--studio-divider);border-radius:6px;background:#f8fafb;box-shadow:none;color:#778291;font-size:13px;font-weight:500;opacity:1}
.auth-soon{display:inline-block;border:1px solid #e1e6ec;border-radius:4px;background:#fff;padding:0 5px;color:var(--studio-muted);font-size:10px;font-weight:400;line-height:17px;white-space:nowrap}
.auth-email-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding-bottom:18px;border-bottom:1px solid var(--studio-divider)}
.auth-email-summary>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.auth-email-summary span{color:var(--studio-muted);font-size:12px;line-height:18px}
.auth-email-summary strong{color:var(--studio-text);font-size:14px;line-height:20px;font-weight:500;overflow-wrap:anywhere}
.auth-email-summary .auth-link{font-size:12px;line-height:18px;flex-shrink:0}
.auth-helper{margin:20px 0 0;color:var(--studio-muted);font-size:12px;line-height:18px;overflow-wrap:anywhere}
.auth-below{width:100%;max-width:500px;text-align:center;color:var(--studio-muted);font-size:12px;line-height:19px}
.auth-below p{margin:0}
.auth-below p>span{display:block;margin-top:3px}
.auth-back{display:inline-flex;justify-content:center;align-items:center;gap:7px;font-size:13px}
.auth-back svg{width:14px;height:14px;stroke-width:1.8}
.auth-message{display:flex;flex-direction:column;gap:18px}
.auth-status-icon{display:grid;place-items:center;width:46px;height:46px;margin:0 0 4px;border-radius:10px;border:1px solid #d9eadf;background:var(--studio-selected);color:var(--emerald)}
.auth-status-icon svg{width:22px;height:22px;stroke-width:1.65}
.auth-status-icon--neutral{border-color:var(--studio-divider);background:var(--studio-hover);color:var(--studio-muted)}
.auth-message p{margin:0;color:var(--studio-muted);font-size:14px;line-height:22px;overflow-wrap:anywhere}
.auth-message p strong{color:var(--studio-text);font-weight:500}
.auth-message .auth-button{margin-top:8px}
.auth-message-link{text-align:center;font-size:13px}
.auth-error{display:flex;align-items:flex-start;gap:9px;border:1px solid #f0d3d3;border-radius:6px;background:#fcf4f4;padding:11px 12px;margin-bottom:22px;color:#984242;font-size:13px;line-height:19px;outline:none}
.auth-error svg{width:16px;height:16px;flex:0 0 16px;margin-top:1px;stroke-width:1.7}
.auth-error:focus-visible{outline:2px solid #bd5555;outline-offset:3px}
.auth-footer{position:relative;width:calc(100% - 128px);max-width:1072px;margin:0 auto;padding:8px 0 16px;color:#708176;font-size:11px;line-height:18px}
.auth-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-height:850px) and (min-width:700px){.auth-header{min-height:130px}.auth-main{padding-top:20px}}
@media(max-width:700px){.auth-page{}.auth-header{min-height:88px;width:calc(100% - 48px);padding:24px 0}.auth-main{padding:4px 24px 24px;gap:22px}.auth-card{padding:32px;max-width:500px}.auth-footer{width:calc(100% - 48px);padding:8px 0 16px}.auth-art svg{right:-420px;top:-240px;opacity:.035}.auth-page .auth-field input{font-size:16px;height:44px}.auth-page .auth-button{min-height:44px}.auth-page .auth-reveal{width:40px}}
@media(max-width:420px){.auth-header{width:calc(100% - 40px)}.auth-page .auth-brand{gap:14px}.auth-brand-cara{font-size:32px;line-height:38px}.auth-brand-divider{height:34px}.auth-socialtalent-logo{width:180px}.auth-main{padding:0 16px 30px}.auth-card{padding:28px 24px;border-radius:10px}.auth-heading h1{font-size:23px;line-height:30px}.auth-heading{margin-bottom:25px}.auth-field-pair{gap:12px}.auth-label-row{gap:8px}}
@media(prefers-reduced-motion:reduce){.auth-page button,.auth-page input,.auth-page a{transition:none}}
.auth-page .auth-sso-live{margin-top:10px}
.auth-provider-options:has(>form:only-child){grid-template-columns:1fr}
.auth-provider-options>form{display:contents}
.auth-notice{border-color:#d6e9de;background:var(--studio-selected);color:var(--emerald)}
.auth-page .auth-button:focus-visible,.auth-page .auth-link:focus-visible,.auth-page .auth-reveal:focus-visible{outline:2px solid var(--leaf);outline-offset:2px}
