* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #111; color: #ccc; font-family: system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
.card {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 44px 56px; text-align: center; width: 420px; max-width: calc(100vw - 32px);
}
h1 { font-size: 18px; font-weight: 600; color: var(--c-white); margin-bottom: 8px; }
p  { font-size: 13px; color: #666; margin-bottom: 32px; }
#login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; border-radius: 8px;
  background: var(--c-white); color: #333; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: background 0.15s;
}
#login-btn:hover { background: #f0f0f0; }
#login-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#login-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
#status { font-size: 12px; color: #666; margin-top: 16px; min-height: 18px; }
.err { color: #f87171 !important; }

.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 16px; color: #555; font-size: 11px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: #2a2a2a;
}

.tabs {
  display: flex; gap: 4px; margin: 0 0 20px;
  background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; padding: 3px;
}
.tab {
  flex: 1; padding: 7px 0; border: none; border-radius: 6px;
  background: transparent; color: #888; font-size: 12px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: #ccc; }
.tab.is-active { background: #262626; color: var(--c-white); }

#email-form { display: flex; flex-direction: column; gap: 8px; }
#email-form input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: #141414; border: 1px solid #2a2a2a; color: #ccc;
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
#email-form input:focus { border-color: #555; }
#email-submit {
  width: 100%; padding: 11px 16px; border-radius: 8px;
  background: var(--c-white); color: #333; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: background 0.15s;
  margin-top: 2px;
}
#email-submit:hover { background: #f0f0f0; }
#email-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.pw-rules[hidden] { display: none; }
.pw-rules {
  list-style: none; padding: 6px 4px 2px; margin: 0;
  text-align: left; display: flex; flex-direction: column; gap: 4px;
}
.pw-rules li {
  font-size: 11px; color: #888;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.15s;
}
.pw-rules li.ok { color: #4ade80; }
.pw-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; font-size: 10px; font-weight: 600;
}

.link-btn {
  background: transparent; border: none; color: #888;
  font-size: 11px; text-decoration: underline; cursor: pointer;
  padding: 6px; margin-top: 2px;
}
.link-btn:hover { color: #ccc; }
.link-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.legal-note {
  margin-top: 20px;
  font-size: 11px;
  color: #666;
  line-height: 1.6;
}
.legal-note a { color: #888; text-decoration: underline; }
.legal-note a:hover { color: #ccc; }
