/* ==========================================================================
   create-account.css — owned by the Create Account page.
   Reuses shared.css tokens + component classes; adds .create-* scoped styles.
   ========================================================================== */

.create-main {
  display: flex;
  justify-content: center;
  padding: 40px 16px 64px;
}

.create-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
}

.create-title {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 24px;
}

/* --- Name row: First / Last side by side --- */
.create-name-row {
  display: flex;
  gap: 16px;
}

.create-name-row .create-field {
  flex: 1 1 0;
  min-width: 0;
}

/* --- Password field with show/hide toggle --- */
.create-password-wrap {
  position: relative;
}

.create-password-input {
  padding-right: 44px;
}

.create-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gh-text-muted);
  border-radius: var(--gh-radius-sm);
}

.create-password-toggle:hover { color: var(--gh-text-secondary); }

/* --- Password rules checklist --- */
.create-rules {
  margin: -4px 0 20px;
}

.create-rules__heading {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--gh-text-muted);
}

.create-rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.create-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gh-text-muted);
  line-height: 1.9;
}

.create-rule__dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gh-bg-gray);
  position: relative;
  transition: background 0.12s ease;
}

/* Satisfied rule: green dot + checkmark, darker label */
.create-rule[data-valid="true"] {
  color: var(--gh-text-secondary);
}

.create-rule[data-valid="true"] .create-rule__dot {
  background: var(--gh-green);
}

.create-rule[data-valid="true"] .create-rule__dot::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- Keep me signed in --- */
.create-keep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--gh-text-secondary);
  cursor: pointer;
}

.create-keep__box {
  width: 18px;
  height: 18px;
  accent-color: var(--gh-purple);
  cursor: pointer;
}

/* --- Submit + sign-in link --- */
.create-submit {
  margin-bottom: 8px;
}

.create-signin {
  margin: 20px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--gh-text-secondary);
}

.create-signin__link {
  font-weight: var(--gh-weight-bold);
  color: var(--gh-purple);
}

/* --- Narrow screens: stack the name fields --- */
@media (max-width: 380px) {
  .create-name-row { flex-direction: column; gap: 0; }
}
