/* Dark auth pages matching workflow_modify vibe */
:root{
  --bg: #1e1e2f;
  --panel: #2a2a3c;
  --panel2: #20232a;
  --border: rgba(255,255,255,0.10);
  --text: #eee;
  --muted: #a9a9b3;

  --blue: #2196F3;
  --green:#28a745;
  --red:#ff6b6b;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: "Segoe UI","Helvetica Neue",sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.auth-shell{
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.auth-top{
  display:flex;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.auth-top a{
  color: #fff;
  text-decoration:none;
  font-weight: 700;
  opacity: .9;
}
.auth-top a:hover{ opacity: 1; text-decoration: underline; }

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

h2{
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.label{
  display:block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: .95rem;
}

.input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #111827;
  color: #fff;
  outline: none;
}
.input:focus{
  border-color: rgba(33,150,243,0.7);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.18);
}

.btn{
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  cursor:pointer;
  font-weight: 800;
  background: var(--blue);
  color: #fff;
}
.btn:hover{ filter: brightness(1.05); }

.help-row{
  margin-top: 12px;
  display:flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .92rem;
  color: var(--muted);
}
.help-row a{ color:#fff; opacity:.9; text-decoration:none; }
.help-row a:hover{ opacity:1; text-decoration:underline; }

.banner{
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-weight: 650;
}
.banner.ok{ border-color: rgba(40,167,69,0.45); color: #b7f7c6; }
.banner.bad{ border-color: rgba(255,107,107,0.55); color: #ffc2c2; }

.hr{
  margin: 16px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
}

details{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  padding: 10px 12px;
}
summary{
  cursor:pointer;
  font-weight: 800;
}
.small{
  font-size:.9rem;
  color: var(--muted);
  margin-top: 6px;
}

.legal-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

.legal-footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-footer__links a {
  color: #94a3b8;
  text-decoration: none;
}

.legal-footer__links a:hover,
.legal-footer__links a:focus {
  text-decoration: underline;
}

.legal-footer__sep {
  opacity: 0.7;
}

.legal-footer__copy {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.9;
}

.auth-legal-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}

.auth-legal-note a {
  color: inherit;
  text-decoration: underline;
}

.legal-footer__disabled {
  color: inherit;
  opacity: 0.75;
  cursor: default;
  text-decoration: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 10px;
  font-size: 14px;
  line-height: 1.45;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
}

.checkbox-row a,
.checkbox-row a:visited {
  color: #cbd5e1;
  text-decoration: underline;
}

.checkbox-row a:hover,
.checkbox-row a:focus {
  color: #ffffff;
}

.auth-link-row{
  margin: 8px 0 14px 0;
}

.auth-inline-link{
  color: #fff;
  opacity: .92;
  text-decoration: none;
  font-size: .95rem;
}

.auth-inline-link:hover,
.auth-inline-link:focus{
  opacity: 1;
  text-decoration: underline;
}