:root {
  --white: #fff;
  --black: #000;
  --accent: #b3f511;
  --accent-cool: #a5dce4;
  --neutral: #c9c9c9;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --border: rgba(201, 201, 201, 0.35);
  --radius: 999px;
}

* {
  box-sizing: border-box;
  -webkit-user-drag: none;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Questrial", "Century Gothic", "URW Gothic L", "Avenir Next", "Avenir", sans-serif;
  color: var(--white);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px 0 64px;
  overflow-y: auto;
  background: #000 url("assets/chatbg.avif") center/cover no-repeat fixed;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.92));
  z-index: 0;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(860px, 94vw);
  text-align: center;
  padding: 48px 40px 56px;
  border-radius: 36px;
  backdrop-filter: blur(28px);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 201, 201, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.login-shell--narrow {
  width: min(520px, 92vw);
}

.wordmark {
  width: 200px;
  max-width: 70%;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

h1 {
  margin: 8px 0 6px;
  font-weight: 500;
}

.intro {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.7);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mfa-block.hidden {
  display: none;
}

.mfa-block input {
  width: 100%;
}

.login-form.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.password-rules {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.password-rules.visible {
  display: block;
}

.password-rules p {
  margin: 0 0 8px;
  font-weight: 700;
  color: #ffb4aa;
}

.password-rules span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
}

.password-rules ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.password-rules li::before {
  content: "•";
  display: inline-block;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.4);
}

.password-rules li.met {
  color: #8cd867;
}

.password-rules li.met::before {
  color: #8cd867;
}

.login-form input,
.login-form textarea {
  height: 48px;
  border-radius: 28px;
  border: 1px solid transparent;
  padding: 0 22px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: #0b0b0f;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.login-form textarea {
  height: auto;
  min-height: 88px;
  padding: 14px 22px;
  resize: vertical;
}

.login-form input:focus,
.login-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.login-form button {
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.login-form .button-link {
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login-form .sso {
  background: rgba(165, 220, 228, 0.2);
  color: var(--white);
  border-color: rgba(165, 220, 228, 0.6);
}

.login-form .sso:hover {
  background: rgba(255, 255, 255, 0.18);
}

.login-form .primary {
  background: linear-gradient(120deg, #ffffff, var(--accent));
  color: #000;
  border-color: transparent;
}

.login-form .primary:hover {
  background: rgba(255, 255, 255, 0.85);
}

.login-form .ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(201, 201, 201, 0.4);
}

.login-form .ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.status {
  margin: -4px 0 4px;
  font-size: 0.9rem;
  color: #ffb4aa;
  min-height: 1.2em;
}

.otp-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  box-shadow: none;
}

.checkbox-row span {
  text-align: left;
}

#featureNotes {
  height: 114px;
  min-height: 114px;
  padding: 14px 22px;
}

.consent-row {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(201, 201, 201, 0.25);
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: center;
}

.consent-row--error {
  border-color: rgba(255, 180, 170, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 180, 170, 0.2);
}

.inline-check {
  margin: 0;
  gap: 10px;
  font-size: 0.92rem;
}

.consent-left {
  justify-content: flex-start;
}

.consent-right {
  justify-content: flex-end;
}

.consent-right span {
  text-align: right;
}

.consent-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
}

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

.helper {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .login-shell {
    padding: 40px 24px;
    backdrop-filter: blur(16px);
  }

  .login-form input,
  .login-form textarea,
  .login-form button {
    font-size: 0.9rem;
  }
}

@media (max-width: 860px) {
  .login-form.two-col {
    grid-template-columns: 1fr;
  }
}

button { border: none; }

.page-footer {
  z-index: 1;
  margin-top: 0;
  padding: 12px 16px 24px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.page-footer a {
  color: inherit;
  text-decoration: underline;
}

.page-footer .sep {
  margin: 0 6px;
  opacity: 0.6;
}
