* { box-sizing: border-box; }
.env-banner { display: none; position: fixed; top: 0; left: 0; right: 0; padding: 8px; text-align: center; font-weight: 700; font-size: 13px; z-index: 1000; }
body.has-env-banner { padding-top: 40px; }
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  background: #0d004c;
  color: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3, p, label, span, div { color: #ffffff; }
.setup-box {
  background: rgba(255,255,255,0.08);
  border: 2px solid #eb56d2;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  color: #ffffff;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #ffffff;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}
.form-group input::placeholder {
  color: rgba(255,255,255,0.5);
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  padding-right: 50px;
}
.peek-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
}
.btn-primary {
  width: 100%;
  margin-top: 8px;
  background: #5441F5;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-primary:hover {
  background: #4332d4;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#loginStatus { margin-top: 16px; color: #ffffff; }

/* 2FA step */
#totpStep { display: none; }
.totp-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 16px;
}
.totp-input-wrap {
  display: flex;
  justify-content: center;
}
#totpCode {
  width: 160px;
  padding: 14px;
  font-size: 24px;
  letter-spacing: 6px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  color: #ffffff;
  -moz-appearance: textfield;
}
#totpCode::-webkit-inner-spin-button,
#totpCode::-webkit-outer-spin-button { -webkit-appearance: none; }
.back-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 0;
}
.back-link:hover { color: #ffffff; }
.back-to-main {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
}
