:root {
  --bg: #0b1220;
  --panel: #131c2f;
  --border: #22304d;
  --text: #f3ede2;
  --muted: #94a3b8;
  --amber: #f5b83d;
  --good: #4ade80;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Two-column page */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 72px;
}

/* LEFT SIDE */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo {
  font-size: 2.2rem;
  font-weight: 700;
}

.tagline {
  color: var(--muted);
}

.compass {
  width: 100%;
  max-width: 580px;
  margin: 30px 0;
}

#needle {
  transform-origin: 300px 300px;
  transform: rotate(40deg);
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand h2 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.brand p:last-child {
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0.85;
}

/* RIGHT SIDE */
.panel {
  width: 100%;
  max-width: 570px;
  justify-self: center;
  padding-top: 24px;
}

.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding-bottom: 14px;
  color: var(--muted);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.tab.active {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--amber);
}

.panel h2 {
  font-size: 2.4rem;
  line-height: 1.15;
}

.subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 6px 0 28px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
}

input::placeholder {
  color: #64748b;
}

input:focus {
  outline: none;
  border-color: var(--amber);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 90px;
}

.show-btn {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Password rules checklist */
.rules {
  list-style: none;
  margin-top: 14px;
}

.rules li {
  line-height: 1.85;
}

.rules li::before {
  content: "\25CB";
  display: inline-block;
  width: 1.4em;
  color: var(--muted);
}

.rules li.met::before {
  content: "\2713";
  color: var(--good);
}

.btn {
  width: 100%;
  margin-top: 12px;
  padding: 22px;
  background: var(--amber);
  color: #1a1405;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  min-height: 1.5em;
  margin-top: 16px;
  color: var(--amber);
}

.disclaimer {
  margin-top: 50px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

/* Phones and small screens: stack the two sides */
@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 28px 20px;
  }

  .compass {
    max-width: 340px;
    margin: 24px auto;
  }

  .brand h2 {
    font-size: 2.4rem;
  }
}