/* =========== signup.css =========== */
.register-page {
  background: var(--bg);
  min-height: 100vh;
  padding: 36px 0 60px;
}

.register-page .register-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.reg-tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  background: #fff;
}

.reg-tab {
  flex: 1;
  padding: 13px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  border-right: 1.5px solid var(--border);
}

.reg-tab:last-child {
  border-right: none;
}

.reg-tab.active {
  background: var(--primary);
  color: #fff;
}

.reg-tab:not(.active):hover {
  background: var(--bg);
}

.reg-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.reg-card__header {
  padding: 20px 28px 18px;
  border-bottom: 1px solid var(--border);
}

.reg-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.reg-card__body {
  padding: 28px;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 20px;
}

.reg-grid--full {
  grid-column: 1;
}

@media (min-width: 600px) {
  .reg-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reg-grid--full {
    grid-column: 1 / -1;
  }

  .reg-card__body {
    padding: 28px;
  }

  .reg-pwd-requirements {
    grid-template-columns: 1fr 1fr;
  }
}

.reg-section {
  margin-top: 32px;
}

.reg-section__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reg-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.reg-field input,
.reg-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.reg-field input:focus,
.reg-field select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 60, 119, 0.08);
}

.reg-field input.error,
.reg-field select.error {
  border-color: #e53935;
}

.reg-field .err {
  font-size: 0.74rem;
  color: #e53935;
  display: none;
}

.reg-field .err.show {
  display: block;
}

.reg-phone-wrap {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  transition: var(--transition);
}

.reg-phone-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 60, 119, 0.08);
}

.reg-phone-country {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1.5px solid var(--border);
  background: #f0f4f8;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}

.reg-phone-country img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.reg-phone-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 11px 12px !important;
  background: transparent !important;
}

.reg-phone-input:focus {
  box-shadow: none !important;
}

.reg-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: var(--transition);
}

.reg-checkbox:hover {
  border-color: #25d366;
  background: #f3fef6;
}

.reg-checkbox input {
  accent-color: #25d366;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.reg-checkbox i {
  color: #25d366;
  font-size: 1rem;
}

.reg-pwd-wrap {
  position: relative;
}

.reg-pwd-wrap input {
  padding-right: 42px !important;
}

.reg-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.reg-pwd-requirements {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}

.reg-pwd-requirements li {
  font-size: 0.77rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.reg-pwd-requirements li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.2s;
}

.reg-pwd-requirements li.met {
  color: var(--secondary-dark);
}

.reg-pwd-requirements li.met::before {
  background: var(--secondary-dark);
}

.reg-terms {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin: 22px 0 20px;
  line-height: 1.6;
}

.reg-terms a {
  color: var(--primary);
  font-weight: 600;
}

.reg-submit {
  width: 100%;
  padding: 14px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.reg-submit:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(111, 194, 130, 0.4);
}

.reg-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reg-switch a {
  color: var(--primary);
  font-weight: 700;
}

.reg-alert {
  display: none;
  background: #fdecec;
  color: #c0392b;
  border: 1px solid #f5b5b5;
  border-radius: var(--radius-md);
  padding: 11px 15px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.reg-alert.show {
  display: flex;
  align-items: center;
  gap: 8px;
}