.v2-auth-runtime{background:var(--canvas)}
.auth-page{padding:58px 0 78px;background:radial-gradient(circle at 50% 0,rgba(255,253,252,.88),rgba(247,240,232,0) 42%)}
.auth-runtime-shell{display:grid;place-items:start center}
.auth-surface{width:min(640px,100%);min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-md)}
.auth-surface__header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:15px;align-items:start;padding:26px 28px 20px;border-bottom:1px solid rgba(223,211,202,.78);background:linear-gradient(180deg,#fffdfc 0%,#fbf5ef 100%)}
.auth-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:var(--terra-soft);color:var(--terra-dark)}
.auth-icon svg,.notice svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9}
.auth-surface h1{margin:2px 0 0;font-family:var(--font-display);font-size:39px;font-weight:600;letter-spacing:-.025em;line-height:1;color:var(--ink)}
.auth-surface__header p{margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.notice-stack{display:grid;gap:10px;padding:20px 28px 0}
.notice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:start;padding:13px 14px;border:1px solid;border-radius:16px;font-size:13px;line-height:1.5}
.notice__mark{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.74)}
.notice strong{display:block;margin-top:1px;color:var(--ink);font-size:13px}
.notice p{margin:3px 0 0;overflow-wrap:anywhere}
.notice a{color:inherit;font-weight:800}
.notice--success{border-color:rgba(92,123,94,.28);background:rgba(229,235,228,.72);color:#405343}
.notice--error{border-color:rgba(155,73,54,.28);background:#fae8e1;color:#713328}
.notice--info{border-color:rgba(113,128,113,.24);background:var(--sage-soft);color:#405343}
.notice--pending{border-color:rgba(185,101,73,.25);background:var(--terra-soft);color:var(--terra-dark)}
.provider-list{display:grid;gap:9px;padding:20px 28px 0}
.provider-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;min-width:0;padding:12px;border:1px solid rgba(223,211,202,.84);border-radius:16px;background:var(--surface-soft)}
.provider-row.is-disabled{opacity:.72}
.provider-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:#fff;color:var(--terra-dark);font-family:var(--font-display);font-size:18px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(223,211,202,.82)}
.provider-row strong{display:block;color:var(--ink);font-size:13px}
.provider-row small{display:block;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.provider-action{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid var(--line-strong);border-radius:999px;background:#fffdfc;color:var(--ink);font-size:12px;font-weight:800;line-height:1.15;text-align:center;text-decoration:none}
.provider-action[aria-disabled="true"]{opacity:.56;cursor:not-allowed;pointer-events:none}
.auth-divider{display:flex;align-items:center;gap:12px;padding:20px 28px 0;color:var(--muted-light);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.11em}
.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--line)}
.auth-form{display:grid;gap:15px;padding:20px 28px 26px}
.auth-fields{display:grid;gap:14px}
.field-group{display:grid;gap:7px;min-width:0}
.field-group label,.pending-panel__form .field-group span{color:var(--ink);font-size:13px;font-weight:800}
.field-group input{width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--line-strong);border-radius:14px;background:#fffdfc;color:var(--ink);font:inherit;font-size:14px;outline:none}
.field-group input:focus{border-color:var(--terra);box-shadow:0 0 0 4px rgba(185,101,73,.13)}
.field-help{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.password-shell{position:relative}
.password-shell input{padding-right:52px}
.password-shell button{position:absolute;right:3px;top:2px;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--surface-soft);color:var(--muted);font-size:12px;font-weight:850}
.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.form-actions .button{white-space:normal;text-align:center}
.pending-panel-slot{padding:0 28px 22px}
.pending-panel{display:grid;gap:13px;margin-top:2px;padding:14px;border:1px solid rgba(185,101,73,.26);border-radius:16px;background:var(--terra-soft);color:var(--terra-dark)}
.pending-panel h2{margin:4px 0 0;font-family:var(--font-display);font-size:23px;font-weight:600;line-height:1.05;color:var(--ink)}
.pending-panel p{margin:7px 0 0;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.pending-panel__form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.pending-panel__form .field-group{gap:5px}
.pending-panel__form input{min-height:42px}
.pending-panel__dev a{color:var(--terra-dark);font-weight:800;overflow-wrap:anywhere}
.auth-secondary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 28px 26px;color:var(--muted);font-size:13px}
.auth-secondary a{color:var(--terra-dark);font-weight:800}
.surface-system .auth-secondary,.surface-magic .auth-secondary,.surface-forgot .auth-secondary,.surface-reset .auth-secondary{justify-content:flex-start}
.provider-action:focus-visible,.password-shell button:focus-visible,.auth-secondary a:focus-visible,.pending-panel__dev a:focus-visible,.auth-popup-action:focus-visible{outline:3px solid rgba(185,101,73,.34);outline-offset:3px}

.v2-auth-popup{margin:0;min-height:100vh;background:var(--canvas)}
.auth-popup-page{min-height:100vh;display:grid;place-items:center;padding:22px}
.auth-popup-card{width:min(380px,100%);display:grid;gap:12px;padding:26px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-md);text-align:left}
.auth-popup-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:var(--sage-soft);color:#405343;font-size:22px;font-weight:900}
.auth-popup-card h1{margin:0;font-family:var(--font-display);font-size:35px;font-weight:600;letter-spacing:-.025em;line-height:1;color:var(--ink)}
.auth-popup-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.auth-popup-fallback-copy{padding-top:3px}
.auth-popup-action{width:100%;margin-top:4px;text-align:center}

@media(max-width:760px){
  .auth-page{padding:36px 0 56px}
  .auth-surface__header,.notice-stack,.provider-list,.auth-divider,.auth-form,.auth-secondary{padding-left:18px;padding-right:18px}
  .pending-panel-slot{padding-left:18px;padding-right:18px}
  .auth-surface h1{font-size:33px}
  .provider-row{grid-template-columns:auto minmax(0,1fr)}
  .provider-action{grid-column:1/-1;width:100%}
}
@media(max-width:430px){
  .auth-surface__header{grid-template-columns:1fr;gap:12px}
  .auth-icon{width:42px;height:42px}
  .notice{grid-template-columns:1fr}
  .form-actions .button{width:100%}
  .pending-panel__form{grid-template-columns:1fr}
  .pending-panel__form .button{width:100%}
  .auth-secondary{display:grid}
  .auth-secondary>a{min-height:44px;display:inline-flex;align-items:center}
}
