/* ============================================================
   KubekBio — Register page (supplements login.css)
   ============================================================ */

/* ── Feature perks list (left panel) ── */
.reg-perks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rp-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.rp-item:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
}

.rp-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.rp-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.rp-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* ── Input status icon (username check) ── */
.inp-status {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  pointer-events: none;
}

/* Valid / invalid input states */
input.valid   { border-color: rgba(34, 197, 94, 0.45) !important; }
input.invalid { border-color: rgba(239, 68, 68, 0.45) !important; }

/* ── Username hint ── */
.hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  line-height: 1.4;
}

.hint.ok  { color: #4ade80; }
.hint.bad { color: #f87171; }

/* ── Password strength ── */
.strength-bar {
  height: 3px;
  border-radius: 2px;
  margin-top: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.35s var(--smooth), background 0.35s;
  width: 0%;
}

.strength-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ── Terms checkbox row ── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0;
}

.terms-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #ffffff;
  cursor: pointer;
}

.terms-row label {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.45;
  cursor: pointer;
  /* reset form-group label uppercase */
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.terms-row label a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* ── Success box ── */
.success-box {
  display: none;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #4ade80;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.success-box:not(:empty) {
  display: block;
}

/* ── Email verification section ── */
.verify-section {
  display: none;
}

.verify-ico {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  opacity: 0.8;
}

.verify-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.verify-email-display {
  text-align: center;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.verify-email-display strong {
  color: var(--text);
  font-weight: 700;
}

/* ── 6-digit code boxes ── */
.code-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.code-box {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  padding: 0;
}

.code-box:focus {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.code-box.filled {
  border-color: var(--border-bright);
}

/* ── Resend row ── */
.resend-row {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.resend-btn {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.83rem;
  padding: 0;
  transition: opacity 0.2s;
}

.resend-btn:hover { opacity: 0.7; }
.resend-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Responsive adjustments ── */
@media (max-width: 900px) {
  .reg-perks { display: none; }
}

@media (max-width: 480px) {
  .code-boxes { gap: 0.35rem; }
  .code-box { font-size: 1.1rem; border-radius: 8px; }
}
