/*
  Simple forms (auth, account buttons)
  - Externalized to respect CSP: no inline style blocks.
  - Scoped to .simple-form-page to avoid leaking to the rest of the site.
*/

.simple-form-page .form-narrow{
  max-width: 560px;
  margin: 0;
}

.simple-form-page .field{
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.simple-form-page .field input{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2);
  color: inherit;
}

.simple-form-page .btn{
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.simple-form-page .btn:hover{
  border-color: rgba(255,255,255,0.4);
}

.simple-form-page .notice{
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}

.simple-form-page .notice-error{ border-color: rgba(255,80,80,0.6); }
.simple-form-page .notice-ok{ border-color: rgba(80,255,160,0.6); }
/* Standard auth/account pages: keep them above the normal page layer, but
   without depending on the Home/WebGPU canvas. */
body.page-standard .ui-main{
  background: #f6f8fb;
  color: #162033;
}

.simple-form-page{
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 32px auto;
  padding: 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  color: #162033;
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}

.simple-form-page a{
  color: #0b5ed7;
}

.simple-form-page .field input{
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #111827;
}

.simple-form-page .btn{
  border: 1px solid #0b5ed7;
  background: #0b5ed7;
  color: #ffffff;
}

.simple-form-page .btn:hover{
  border-color: #084298;
  background: #084298;
}

.simple-form-page .notice-error{
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

.simple-form-page .notice-ok{
  background: #ecfdf5;
  color: #065f46;
  border-color: #bbf7d0;
}

.simple-form-page .u-honeypot{
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pw-strength-bar{
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

#pw-bar{
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .3s;
}

#pw-bar.pw-bar-level-0{ width:0; }
#pw-bar.pw-bar-level-1{ width:20%; background:#e74c3c; }
#pw-bar.pw-bar-level-2{ width:40%; background:#e67e22; }
#pw-bar.pw-bar-level-3{ width:60%; background:#f1c40f; }
#pw-bar.pw-bar-level-4{ width:80%; background:#2ecc71; }
#pw-bar.pw-bar-level-5{ width:100%; background:#27ae60; }

.pw-rules{
  font-size: 12px;
  opacity: .75;
  margin-top: 4px;
}
