/* ============================================================
   GoPass Terminal — Screen 05a: Register Email
   ============================================================ */

/* ── Back bar ── */
.reg-back-bar {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
}

.reg-back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.reg-back-link i[data-lucide] {
  width: 18px;
  height: 18px;
}

.reg-close-btn {
  width: 37px;
  height: 36px;
  background: var(--bg-soft);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.reg-close-btn i[data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

/* ── Title block ── */
.reg-title-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 32px 0;
  text-align: center;
  flex-shrink: 0;
}

.reg-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin: 0;
}

.reg-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
}

.reg-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── Email input ── */
.reg-input-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 32px 0;
  flex-shrink: 0;
}

.reg-label-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.reg-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.reg-label-req {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-pink);
}

.reg-input {
  width: 100%;
  height: 56px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1.5px solid var(--border-light);
  padding: 0 18px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  cursor: default;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.reg-input::placeholder {
  color: var(--text-muted);
}

.reg-input.is-focused {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(229, 20, 126, 0.12);
}

.reg-input.is-error {
  border-color: var(--error-red);
}

/* ── CTA button ── */
.reg-cta-wrap {
  width: 100%;
  padding: 32px 32px 0;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.reg-cta-btn {
  width: 100%;
  height: 64px;
  background: var(--brand-pink);
  border: none;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(229, 20, 126, 0.4);
  transition: background 0.15s;
}

.reg-cta-btn:hover {
  background: var(--brand-pink-dark);
}

/* ── Spacer ── */
.reg-spacer {
  flex: 1;
  min-height: 0;
}

/* ── Virtual keyboard ── */
.reg-keyboard {
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 8px 20px;
  flex-shrink: 0;
}

.reg-vkb-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: center;
}

.reg-vkb-row--centred {
  /* spacers at each end indent the row to look like QWERTY's asd row */
}

/* Transparent spacer matching half-key width for centering */
.reg-vkb-spacer {
  width: 30px;
  flex-shrink: 0;
}

/* ── Base key ── */
.reg-vkb-key {
  flex: 1 1 0;
  height: 64px;
  background: var(--bg-soft);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.reg-vkb-label {
  pointer-events: none;
  line-height: 1;
}

.reg-vkb-key:active,
.reg-vkb-key.is-pressed {
  background: var(--border-light);
}

/* ── Shift key ── */
.reg-vkb-key--shift {
  flex: 0 0 84px;
  background: var(--brand-blue);
}

.reg-vkb-key--shift i[data-lucide] {
  width: 24px;
  height: 24px;
  color: #ffffff;
  pointer-events: none;
}

.reg-vkb-key--shift.is-shift-once {
  background: var(--bg-soft);
  outline: 2px solid var(--brand-pink);
}

.reg-vkb-key--shift.is-shift-once i[data-lucide] {
  color: var(--brand-pink);
}

.reg-vkb-key--shift.is-shift-caps {
  background: var(--brand-pink);
}

.reg-vkb-key--shift.is-shift-caps i[data-lucide] {
  color: #ffffff;
}

.reg-vkb-key--shift.is-shift-caps::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 7px;
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
}

/* ── Backspace key ── */
.reg-vkb-key--backspace {
  flex: 0 0 84px;
  background: var(--bg-soft);
}

.reg-vkb-key--backspace i[data-lucide] {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  pointer-events: none;
}

/* ── Utility row ── */
.reg-vkb-key--sym {
  flex: 0 0 84px;
  font-size: 15px;
  font-weight: 600;
}

.reg-vkb-key--at {
  flex: 0 0 54px;
}

.reg-vkb-key--space {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.reg-vkb-key--comma {
  flex: 0 0 54px;
}

.reg-vkb-key--dot {
  flex: 0 0 54px;
}

.reg-vkb-key--enter {
  flex: 0 0 84px;
  background: var(--brand-blue);
}

.reg-vkb-key--enter i[data-lucide] {
  width: 22px;
  height: 22px;
  color: #ffffff;
  pointer-events: none;
}
