/* PayPay visual login 2026-11-11
   Additive auth-only layer. Matches workbench visual-b (cooler gray, 20px radius,
   solid purple primary, 50px fields). Does not touch .shell.light.
   Covers login / register / reset / setup / existing — all share .auth-page. */

.auth-page{
  --paypay-bg:#e4e8ef;
  --bg:#e4e8ef;
  --paypay-panel:#fff;
  --panel:#fff;
  --paypay-input:#fff;
  --input:#fff;
  --paypay-border:#d4d9e4;
  --line:#d4d9e4;
  --paypay-text:#16182a;
  --text:#16182a;
  --paypay-muted:#5c6578;
  --muted:#5c6578;
  --paypay-accent:#6b35cf;
  --accent:#6b35cf;
  --paypay-accent-hover:#5929b4;
  --paypay-accent-soft:#efe6fa;
  --accent-soft:#efe6fa;
  --paypay-on-accent:#fff;
  --on-accent:#fff;
  --paypay-shadow:0 1px 2px rgba(22,24,42,.06),0 16px 40px rgba(22,24,42,.08);
  box-sizing:border-box;
  background:#e4e8ef;
  color:#16182a;
  width:100%;
  min-height:100vh;
  margin:0;
  padding:48px 24px 56px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  font-family:Inter,"SF Pro Text","Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",ui-sans-serif,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.auth-page .auth-brand{
  align-items:center;
  gap:14px;
  margin:0 0 32px;
  display:flex;
}
.auth-page .auth-brand img{
  width:56px;
  height:56px;
  border:1px solid #d4d9e4;
  border-radius:50%;
  background:#fff;
  box-shadow:none;
  object-fit:cover;
}
.auth-page .auth-brand strong{
  font-size:20px;
  font-weight:720;
  letter-spacing:-.02em;
  color:#16182a;
  line-height:1.2;
}
.auth-page .auth-brand small{
  display:block;
  margin-top:3px;
  font-size:11px;
  font-weight:550;
  letter-spacing:.08em;
  color:#6b35cf;
}

.auth-page .login-panel.panel,
.auth-page .login-panel{
  box-sizing:border-box;
  width:min(840px,100%);
  margin:0;
  padding:44px 48px;
  gap:40px;
  background:#fff;
  border:1px solid #d4d9e4;
  border-radius:20px;
  box-shadow:0 1px 2px rgba(22,24,42,.06),0 16px 40px rgba(22,24,42,.08);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);
  align-items:start;
}
.auth-page .login-panel>div:first-child{max-width:none}
.auth-page .login-panda{
  width:64px;
  height:64px;
  margin:0 0 20px;
  border:1px solid #d4d9e4;
  border-radius:50%;
  background:#fff;
  box-shadow:none;
  object-fit:cover;
}
.auth-page .login-panel .eyebrow,
.auth-page .eyebrow{
  letter-spacing:.08em;
  color:#6b35cf;
  font-size:12px;
  font-weight:650;
}
.auth-page .login-panel h2{
  margin:8px 0 12px;
  font-size:30px;
  font-weight:720;
  letter-spacing:-.03em;
  line-height:1.2;
  color:#16182a;
}
.auth-page .login-panel p{
  margin:0;
  color:#5c6578;
  font-size:14.5px;
  line-height:1.7;
  font-weight:400;
}

.auth-page .login-fields{
  display:grid;
  gap:18px;
  min-width:0;
  margin:0;
  width:100%;
  align-items:stretch;
  flex-direction:column;
}
.auth-page .login-fields label{
  width:100%;
  min-width:0;
  margin:0;
  color:#5c6578;
  font-size:13px;
  font-weight:550;
  line-height:1.5;
  display:block;
}
.auth-page .login-fields input:not([type=checkbox]):not([type=radio]),
.auth-page .login-fields textarea,
.auth-page .login-fields select{
  box-sizing:border-box;
  width:100%;
  min-height:50px;
  margin-top:8px;
  padding:12px 16px;
  border:1px solid #d4d9e4;
  border-radius:14px;
  background:#fff;
  color:#16182a;
  font-size:14.5px;
  font-family:inherit;
}
.auth-page .login-fields input:not([type=checkbox]):not([type=radio]):focus,
.auth-page .login-fields textarea:focus,
.auth-page .login-fields select:focus{
  outline:none;
  border-color:#6b35cf;
  box-shadow:0 0 0 4px #efe6fa;
}

.auth-page .login-fields .primary,
.auth-page .login-fields button.primary,
.auth-page button.primary{
  width:100%;
  min-height:50px;
  margin-top:4px;
  padding:12px 20px;
  border:1px solid transparent;
  border-radius:14px;
  background:#6b35cf;
  color:#fff;
  font-size:15px;
  font-weight:650;
  letter-spacing:0;
  box-shadow:0 8px 18px rgba(107,53,207,.22);
}
.auth-page .login-fields .primary:hover:not(:disabled),
.auth-page .login-fields button.primary:hover:not(:disabled),
.auth-page button.primary:hover:not(:disabled){
  background:#5929b4;
  filter:none;
}
.auth-page .login-fields .primary:disabled,
.auth-page button.primary:disabled{opacity:.65}

.auth-page .text-button,
.auth-page .login-fields .text-button,
.auth-page .auth-help .text-button,
.auth-page .auth-switch .text-button{
  color:#6b35cf;
  background:transparent;
  border:0;
  padding:4px 0;
  font-size:13.5px;
  font-weight:550;
  width:auto;
  min-height:0;
  box-shadow:none;
  justify-self:start;
}
.auth-page .auth-help{
  flex-wrap:wrap;
  gap:16px 20px;
  margin-top:8px;
  display:flex;
}
.auth-page .auth-switch{
  margin:24px 0 0;
  color:#5c6578;
  font-size:14px;
  line-height:1.6;
  text-align:center;
}
.auth-page .auth-switch .text-button{margin-left:4px}
.auth-page .login-session-notice{
  background:#f4f6fa;
  border:1px solid #d4d9e4;
  border-radius:14px;
  padding:14px 16px;
}
.auth-page .login-session-notice p,
.auth-page .login-session-notice .micro{
  margin:0;
  color:#5c6578;
  font-size:13.5px;
  line-height:1.65;
}

.auth-page .login-fields input,
.auth-page .login-fields .primary,
.auth-page .login-fields button.primary{
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease;
}
@media (prefers-reduced-motion:reduce){
  .auth-page *{transition:none!important}
}

@media (max-width:640px){
  .auth-page{padding:28px 16px 40px}
  .auth-page .auth-brand{margin-bottom:24px}
  .auth-page .login-panel.panel,
  .auth-page .login-panel{
    grid-template-columns:1fr;
    gap:28px;
    padding:28px 22px;
    border-radius:16px;
  }
  .auth-page .login-panel h2{font-size:26px;margin:6px 0 10px}
  .auth-page .login-panda{width:56px;height:56px;margin-bottom:16px}
}
