/* HG Optimisation — Welcome screen only (Login / Create Account / Forgot Password / e-mail code).
   Owner 2026-12-02: each screen has its own CSS; loaded only when nobody is signed in, after hub.css (uses its colours). */
.hg-auth-form{display:none;flex-direction:column;gap:12px}
.hg-auth-form.is-active{display:flex}
.hg-auth-form label{display:grid;gap:5px;font-weight:600;font-size:14px}
.hg-auth-form input:not([type=checkbox]){min-height:42px;padding:8px 12px;border:1px solid var(--hub-line);border-radius:9px;font-size:15px;font-family:inherit;color:var(--hub-text);background:#fff}
.hg-auth-form input:focus{outline:0;border-color:var(--hub-blue);box-shadow:0 0 0 2px rgba(34,113,177,.2)}
/* Login / Create Account / Forgot Password */
.hg-auth{display:grid;place-items:start center;padding:48px 16px}
.hg-auth-card{width:min(440px,100%);padding:28px;background:#fff;border:1px solid var(--hub-line);border-radius:16px;box-shadow:0 10px 30px rgba(0,29,110,.06)}
.hg-auth-card h1{margin:0;color:var(--hub-navy);font-size:26px}
.hg-auth-sub{margin:6px 0 18px;color:var(--hub-muted)}
.hg-auth-tabs{display:flex;gap:4px;padding:4px;margin-bottom:18px;background:var(--hub-bg);border-radius:10px}
.hg-auth-tabs button{flex:1;padding:8px 6px;border:0;border-radius:8px;background:none;color:var(--hub-muted);font-weight:600;font-size:13px;line-height:1.2;font-family:inherit;cursor:pointer}
.hg-auth-tabs button.is-active{background:#fff;color:var(--hub-navy);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.hg-auth-or{display:flex;align-items:center;gap:10px;color:#6b7280;font-size:13px}.hg-auth-or::before,.hg-auth-or::after{content:"";flex:1;height:1px;background:var(--hub-line)}
.hg-google-btn{gap:10px;min-height:42px;border-color:#dadce0;color:#3c4043;font-weight:600}.hg-google-btn svg{flex:none}
.hg-google-btn:hover,.hg-google-btn:focus-visible{background:#f8faff;border-color:#c6d4f5;color:#3c4043}
.hg-auth-note{margin:0;color:var(--hub-muted);font-size:13px}
.hg-hub-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.hg-auth-legal{align-items:flex-start!important;font-size:14px}
.hg-auth-legal input{margin-top:4px}
/* Sign-up: First / Last name side by side, short hint under Username (owner 2026-11-28). */
.hg-auth-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.hg-auth-row>label{min-width:0}.hg-auth-row input{width:100%;min-width:0;box-sizing:border-box}
@media (max-width:420px){.hg-auth-row{grid-template-columns:1fr}}
.hg-auth-hint{font-weight:400;font-size:12px;color:#5a6f88}
/* CLAUDE-SIGNUP: errors in red under the field */
.hg-auth-err{display:block;color:#c62828;font-size:12.5px;font-weight:600;margin-top:2px}.hg-auth-err[hidden]{display:none}.hg-auth-field.has-error input{border-color:#c62828!important;box-shadow:0 0 0 2px rgba(198,40,40,.12)}
.hg-auth-phone{display:grid;grid-template-columns:112px minmax(0,1fr);gap:8px;align-items:stretch} /* code: just the flag + code; the number takes the rest */
.hg-auth-form .hg-auth-phone :is(.hg-auth-cc,input){box-sizing:border-box;width:100%;min-width:0;height:42px;min-height:42px;margin:0!important;padding:8px 12px;border:1px solid var(--hub-line);border-radius:9px;font-size:15px;font-family:inherit;color:var(--hub-text);background:#fff;line-height:1.2}
.hg-auth-form .hg-auth-phone .hg-auth-cc{appearance:auto;padding-right:6px}
.hg-auth-form .hg-auth-phone .hg-auth-cc:focus{outline:0;border-color:var(--hub-blue);box-shadow:0 0 0 2px rgba(34,113,177,.2)}
.hg-auth-field.has-error .hg-auth-phone :is(.hg-auth-cc,input){border-color:#c62828!important}
