@charset "UTF-8";
/* Register v2 — Đăng ký tài khoản */
.reg-v2 {
  --reg-v2-red: #e31e24;
  --reg-v2-red-hover: #c4191f;
  --reg-v2-red-light: #fff5f5;
  --reg-v2-text: #1a1a1a;
  --reg-v2-muted: #6b7280;
  --reg-v2-border: #e5e7eb;
  --reg-v2-bg: #f8f9fb;
  --reg-v2-card-radius: 20px;
  --reg-v2-input-radius: 12px;
  --reg-v2-btn-radius: 12px;
  background: var(--reg-v2-bg);
  padding: 40px 0 60px;
  min-height: 60vh;
  align-items: flex-start !important; }

.reg-v2 .customer-inner.reg-v2-inner {
  max-width: 960px;
  padding: 0 16px; }

/* Header */
.reg-v2-header {
  text-align: center;
  margin-bottom: 28px; }

.reg-v2 .heading-layout-customer.reg-v2-title {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--reg-v2-text); }

.reg-v2-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--reg-v2-muted);
  font-weight: 400; }

/* Stepper */
.reg-v2-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto; }

.reg-v2-stepper--hidden {
  display: none; }

.reg-v2-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 0; }

.reg-v2-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  background: var(--reg-v2-border);
  z-index: 0; }

.reg-v2-step.is-done:not(:last-child)::after {
  background: var(--reg-v2-red); }

.reg-v2-step__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--reg-v2-border);
  background: #fff;
  color: var(--reg-v2-muted);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0; }

.reg-v2-step.is-active .reg-v2-step__circle {
  border-color: var(--reg-v2-red);
  background: var(--reg-v2-red);
  color: #fff; }

.reg-v2-step.is-done .reg-v2-step__circle {
  border-color: var(--reg-v2-red);
  background: var(--reg-v2-red);
  color: #fff; }

.reg-v2-step__label {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--reg-v2-muted);
  max-width: 120px; }

.reg-v2-step.is-active .reg-v2-step__label,
.reg-v2-step.is-done .reg-v2-step__label {
  color: var(--reg-v2-red);
  font-weight: 600; }

/* Main card */
.reg-v2-card {
  background: #fff;
  border-radius: var(--reg-v2-card-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden; }

.reg-v2-card-content {
  display: flex;
  align-items: stretch;
  min-height: 420px; }

.reg-v2-form-col {
  flex: 1;
  padding: 36px 40px;
  min-width: 0; }

.reg-v2-illustration {
  flex: 0 0 42%;
  max-width: 42%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  position: relative;
  padding: 20px; }

.reg-v2-illustration::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%); }

.reg-v2-illustration img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: bottom center; }

/* Step panels */
#cv_authentication_basic_phone_register_container {
  width: 100%; }

.reg-v2-step-panel {
  width: 100%; }

/* Step 1 */
.reg-v2 .group-confirm-wrap .head-confirm {
  font-size: 15px;
  color: var(--reg-v2-text);
  font-weight: 500;
  margin-bottom: 16px; }

.reg-v2-input-wrap {
  position: relative;
  width: 100%; }

.reg-v2-input-wrap .reg-v2-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--reg-v2-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center; }

.reg-v2-input-wrap .cv-form-control {
  padding-left: 44px !important;
  border-radius: var(--reg-v2-input-radius) !important;
  border-color: var(--reg-v2-border) !important;
  height: 52px !important;
  font-size: 15px !important; }

.reg-v2 .item-form input:not([type="radio"]) {
  border-radius: var(--reg-v2-input-radius);
  border-color: var(--reg-v2-border);
  height: 48px;
  font-size: 14px; }

.reg-v2 .cv-btn.btn3.isYellow {
  background: var(--reg-v2-red) !important;
  border-color: var(--reg-v2-red) !important;
  border-radius: var(--reg-v2-btn-radius) !important;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s; }

.reg-v2 .cv-btn.btn3.isYellow:hover {
  background: var(--reg-v2-red-hover) !important;
  border-color: var(--reg-v2-red-hover) !important; }

.reg-v2-btn-arrow {
  display: inline-flex; }

.reg-v2-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--reg-v2-muted);
  font-size: 14px; }

.reg-v2-divider::before,
.reg-v2-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--reg-v2-border); }

.reg-v2 .link-login-phone {
  text-align: center;
  margin: 0;
  font-size: 14px;
  color: var(--reg-v2-muted); }

.reg-v2 .link-login-phone a {
  color: var(--reg-v2-red);
  font-weight: 600;
  text-decoration: none; }

.reg-v2 .link-login-phone a:hover {
  text-decoration: underline; }

/* Step 2 — OTP */
.reg-v2 .cv-card-header-new {
  display: none; }

.reg-v2-panel-meta {
  margin-bottom: 24px; }

.reg-v2-shield-icon {
  width: 56px;
  height: 56px;
  margin: 0 calc((100% - 56px)/2) 16px; }

.reg-v2-panel-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--reg-v2-text);
  line-height: 1.3;
  text-align: center; }

.reg-v2-otp-sent {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--reg-v2-muted);
  text-align: center; }

.reg-v2-otp-sent strong {
  color: var(--reg-v2-text);
  font-weight: 600; }

.reg-v2-edit-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
  color: var(--reg-v2-red);
  margin-left: 4px; }

.reg-v2-edit-phone:hover {
  opacity: 0.8; }

.reg-v2-otp-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--reg-v2-text);
  margin-bottom: 12px; }

.reg-v2 .cv-otp-inputs {
  justify-content: flex-start;
  gap: 10px; }

.reg-v2 .cv-otp-digit {
  width: 48px;
  height: 52px;
  border-radius: 10px;
  border-color: var(--reg-v2-border);
  font-size: 22px; }

.reg-v2 .cv-otp-digit:focus {
  border-color: var(--reg-v2-red);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12); }

.reg-v2-otp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 4px; }

.reg-v2-otp-timer {
  font-size: 13px;
  color: var(--reg-v2-red);
  font-weight: 500; }

.reg-v2 .cv-resend {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--reg-v2-red); }

.reg-v2 .cv-resend:not(.cv-resend--disabled) {
  text-decoration: underline;
  cursor: pointer; }

.reg-v2 .cv-resend.cv-resend--disabled {
  opacity: 1;
  cursor: default;
  pointer-events: none;
  color: var(--reg-v2-red); }

.reg-v2 .cv-text-center {
  display: none; }

/* Step 3 — Account info */
.reg-v2-panel-desc {
  margin: 0;
  font-size: 14px;
  color: var(--reg-v2-muted);
  line-height: 1.5; }

.reg-v2-label {
  display: block !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--reg-v2-text);
  margin-bottom: 6px;
  width: 100%; }

.reg-v2-label--required::after {
  content: ' *';
  color: var(--reg-v2-red); }

.reg-v2-field--hidden {
  display: none !important; }

.reg-v2-field.reg-v2-field {
  flex-direction: column;
  align-items: stretch; }

.reg-v2-name-row {
  display: flex;
  gap: 12px;
  width: 100%; }

.reg-v2-name-row .reg-v2-field {
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: stretch; }

.reg-v2-name-row .reg-v2-field ~ .reg-v2-field {
  margin-top: 0 !important; }

.item-form-password .eye-toggle {
  width: 45px;
  height: 35px;
  position: absolute;
  right: 0;
  top: calc(50% + 11px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; }

.reg-v2 .cv-field-hint {
  font-size: 12px;
  color: #f00;
  margin: 10px 0 12px;
  padding: 0;
  font-weight: 500;
  width: 100%; }

.reg-v2 .item-form-gender .group-confirm-type {
  gap: 24px; }

.reg-v2 .item-form-gender .group-confirm-type label {
  font-size: 14px !important;
  color: var(--reg-v2-text) !important; }

.reg-v2 .item-form-gender input[type="radio"] {
  accent-color: var(--reg-v2-red);
  width: 18px;
  height: 18px; }

.reg-v2-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--reg-v2-muted); }

.reg-v2-terms input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--reg-v2-red);
  flex-shrink: 0;
  width: 16px;
  height: 16px; }

.reg-v2-terms a {
  color: var(--reg-v2-red);
  font-weight: 600;
  text-decoration: none; }

.reg-v2-terms a:hover {
  text-decoration: underline; }

.reg-v2 .item-form-password .cv-form-control {
  padding-right: 48px !important; }

/* Back links */
.reg-v2-back-links {
  text-align: center;
  margin-top: 20px; }

.reg-v2-back-link {
  display: none;
  font-size: 14px;
  color: var(--reg-v2-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit; }

.reg-v2-back-link.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 6px; }

.reg-v2-back-link:hover {
  color: var(--reg-v2-red); }

/* Features bar */
.reg-v2-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding: 24px 28px;
  background: #fff;
  border-radius: var(--reg-v2-card-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04); }

.reg-v2-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px; }

.reg-v2-feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--reg-v2-red-light);
  color: var(--reg-v2-red);
  display: flex;
  align-items: center;
  justify-content: center; }

.reg-v2-feature__icon svg {
  width: 22px;
  height: 22px; }

.reg-v2-feature__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--reg-v2-text);
  line-height: 1.3; }

.reg-v2-feature__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--reg-v2-muted); }

/* Alerts */
.reg-v2 .cv-alert {
  font-size: 13px; }

/* Responsive */
@media (max-width: 991px) {
  .reg-v2-illustration {
    display: none; }
  .reg-v2-form-col {
    padding: 28px 24px; }
  .reg-v2-features {
    grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 575px) {
  .reg-v2 .heading-layout-customer.reg-v2-title {
    font-size: 24px; }
  .reg-v2-step__label {
    font-size: 10px;
    max-width: 90px; }
  .reg-v2-step__circle {
    width: 32px;
    height: 32px;
    font-size: 12px; }
  .reg-v2-step:not(:last-child)::after {
    top: 16px;
    left: calc(50% + 18px);
    width: calc(100% - 36px); }
  .reg-v2-form-col {
    padding: 24px 20px; }
  .reg-v2 .cv-otp-digit {
    width: 42px;
    height: 48px;
    font-size: 18px; }
  .reg-v2-name-row {
    flex-direction: column;
    gap: 0; }
  .reg-v2-name-row .reg-v2-field ~ .reg-v2-field {
    margin-top: 15px !important; }
  .reg-v2-features {
    grid-template-columns: 1fr;
    padding: 20px; } }

/* Reset password — success & variants */
.reg-v2-otp-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important; }

.reg-v2-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important; }

.reg-v2-resend-text {
  font-size: 13px;
  color: var(--reg-v2-muted); }

.reg-v2-resend-text .cv-resend {
  display: inline; }

.reg-v2-success {
  text-align: center;
  padding: 12px 0 8px; }

.reg-v2-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #22a06b;
  display: flex;
  align-items: center;
  justify-content: center; }

.reg-v2-success-icon svg {
  width: 36px;
  height: 36px; }

.reg-v2-success .reg-v2-panel-title {
  margin-bottom: 10px; }

.reg-v2-success .reg-v2-panel-desc {
  margin-bottom: 28px; }

.reg-v2-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px; }

.reg-v2-success-actions .cv-btn,
.reg-v2-success-actions .reg-v2-btn-outline {
  width: 100%;
  text-align: center; }

.reg-v2-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: var(--reg-v2-btn-radius);
  border: 1px solid var(--reg-v2-border);
  background: #fff;
  color: var(--reg-v2-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s; }

.reg-v2-btn-outline:hover {
  border-color: var(--reg-v2-red);
  color: var(--reg-v2-red); }

.reg-v2-features--reset {
  grid-template-columns: repeat(3, 1fr); }

@media (max-width: 991px) {
  .reg-v2-features--reset {
    grid-template-columns: 1fr; } }
