/**
 * وتمام — Auth Pages UI (Login / Register)
 * طراحی مینیمال، متمرکز، بدون فضای خالی اضافه
 */

/* ══ RESET ══ */
.vt-auth-page, .vt-auth-page * {
  box-sizing: border-box;
  font-family: 'Vazirmatn','IRANYekan',Tahoma,sans-serif !important;
}

/* ══ OUTER WRAPPER ══ */
.vt-auth-page {
  direction: rtl;
  min-height: 100vh;
  background: linear-gradient(160deg, #f0f4ff 0%, #e8f5e9 50%, #f0f4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
}

/* ══ CARD ══ */
.vt-auth-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(30,64,175,.12), 0 2px 8px rgba(0,0,0,.06);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  position: relative;
}

/* ══ HEADER STRIP ══ */
.vt-auth-header {
  padding: 28px 28px 20px;
  text-align: center;
  position: relative;
}
.vt-auth-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #059669, #2563eb);
  background-size: 200% 100%;
  animation: headerSlide 3s linear infinite;
}
@keyframes headerSlide {
  0%{background-position:100% 0} 100%{background-position:-100% 0}
}

/* Brand logo circle */
.vt-brand-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
}
.vt-brand-circle.blue {
  background: linear-gradient(135deg,#dbeafe,#bfdbfe);
  box-shadow: 0 4px 16px rgba(37,99,235,.2);
}
.vt-brand-circle.green {
  background: linear-gradient(135deg,#d1fae5,#a7f3d0);
  box-shadow: 0 4px 16px rgba(5,150,105,.2);
}
.vt-auth-header h1 {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 5px;
}
.vt-auth-header p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ══ BODY ══ */
.vt-auth-body {
  padding: 0 24px 24px;
}

/* ══ TABS ══ */
.vt-auth-tabs {
  display: flex;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.vt-auth-tab {
  flex: 1;
  padding: 10px 8px;
  background: #f9fafb;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.vt-auth-tab.active {
  background: #2563eb;
  color: #fff;
}
.vt-auth-tab.active.green { background: #059669; }
.vt-auth-tab:not(.active):hover { background: #f1f5f9; color: #374151; }

/* ══ STEPS ══ */
.vt-auth-step { display: none; }
.vt-auth-step.active { display: block; animation: stFade .2s ease; }
@keyframes stFade { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }

/* ══ PROGRESS ══ */
.vt-auth-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}
.vt-ap-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: all .28s;
  font-family: inherit;
}
.vt-ap-dot.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.vt-ap-dot.active.green { background: #059669; border-color: #059669; }
.vt-ap-dot.done { background: #10b981; border-color: #10b981; color: #fff; }
.vt-ap-line {
  width: 44px; height: 2px;
  background: #e5e7eb;
  transition: background .28s;
}
.vt-ap-line.done { background: #10b981; }

/* ══ FIELD ══ */
.vt-f { margin-bottom: 14px; }
.vt-f label {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: #374151; margin-bottom: 6px;
}
.vt-f label .ico { font-size: 14px; }
.vt-f .req { color: #ef4444; }

.vt-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  background: #fafafa;
  outline: none;
  transition: border .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.vt-input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.vt-input.green:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.vt-input-row { display: flex; gap: 8px; }
.vt-input-row .vt-input { flex: 1; border-radius: 10px 0 0 10px; }

/* ══ PASSWORD WRAP ══ */
.vt-pw-wrap { position: relative; }
.vt-pw-wrap .vt-input { padding-left: 42px; }
.vt-pw-eye {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px;
  color: #9ca3af; padding: 0; line-height: 1;
}
.vt-pw-eye:hover { color: #2563eb; }

/* ══ OTP ══ */
.vt-otp-hint {
  text-align: center; font-size: 13.5px; color: #374151;
  margin-bottom: 16px; font-weight: 600;
}
.vt-otp-hint .ph { color: #2563eb; }
.vt-otp-hint .ph.green { color: #059669; }
.vt-otp-boxes {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  direction: ltr; margin-bottom: 12px;
}
.vt-otp-box {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 24px; font-weight: 800;
  border: 2px solid #e5e7eb; border-radius: 12px;
  outline: none; background: #fafafa; color: #111827;
  font-family: inherit; transition: all .18s;
}
.vt-otp-box:focus {
  border-color: #2563eb; background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  transform: scale(1.06);
}
.vt-otp-box.green:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}
.vt-otp-sep { font-size: 22px; color: #d1d5db; font-weight: 300; margin: 0 2px; }

.vt-otp-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.vt-timer { font-size: 14px; font-weight: 800; color: #2563eb; min-width: 48px; text-align: center; }
.vt-timer.green { color: #059669; }
.vt-resend {
  background: none; border: none; color: #2563eb;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.vt-resend.green { color: #059669; }
.vt-resend:disabled { color: #9ca3af; cursor: not-allowed; }
.vt-resend:not(:disabled):hover { text-decoration: underline; }
.vt-back-btn {
  background: none; border: none; color: #9ca3af;
  font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.vt-back-btn:hover { color: #374151; }

/* ══ SEND BUTTON (inline) ══ */
.vt-send-btn {
  flex-shrink: 0; padding: 0 18px; height: 46px;
  border: 1.5px solid #2563eb;
  border-radius: 0 10px 10px 0;
  background: #fff; color: #2563eb;
  font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: all .2s; font-family: inherit;
}
.vt-send-btn:hover:not(:disabled) { background: #2563eb; color: #fff; }
.vt-send-btn:disabled { opacity: .5; cursor: not-allowed; }
.vt-send-btn.green { border-color: #059669; color: #059669; }
.vt-send-btn.green:hover:not(:disabled) { background: #059669; color: #fff; }

/* ══ PRIMARY BUTTON ══ */
.vt-btn {
  width: 100%; height: 48px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: all .25s; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.vt-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,99,235,.4);
}
.vt-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.vt-btn.green {
  background: linear-gradient(135deg, #059669, #065f46);
  box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
.vt-btn.green:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(5,150,105,.4); }

/* ══ ALERT ══ */
.vt-alert {
  padding: 11px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 600; line-height: 1.5;
  margin-bottom: 14px; display: none;
}
.vt-alert.err  { display:block; background:#fee2e2; border:1.5px solid #fca5a5; color:#991b1b; }
.vt-alert.ok   { display:block; background:#d1fae5; border:1.5px solid #6ee7b7; color:#065f46; }
.vt-alert.info { display:block; background:#dbeafe; border:1.5px solid #93c5fd; color:#1e40af; }

/* ══ CHECKBOX ══ */
.vt-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #4b5563; margin-bottom: 14px; cursor: pointer;
}
.vt-check input { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; }

/* ══ FOOTER LINK ══ */
.vt-auth-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.vt-auth-footer a {
  color: #2563eb; font-weight: 700; text-decoration: none; margin-right: 3px;
}
.vt-auth-footer a:hover { text-decoration: underline; }
.vt-auth-footer a.green { color: #059669; }

/* ══ TWO-COL FORM ══ */
.vt-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vt-select {
  width: 100%; height: 46px; padding: 0 12px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 13px; color: #111827; background: #fafafa;
  outline: none; font-family: inherit;
}
.vt-select:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.vt-textarea {
  width: 100%; padding: 10px 12px; min-height: 72px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 13px; color: #111827; background: #fafafa;
  outline: none; font-family: inherit; resize: vertical;
}
.vt-textarea:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,.1); }

/* ══ SECTION LABEL ══ */
.vt-section {
  font-size: 12px; font-weight: 800; color: #9ca3af;
  letter-spacing: .5px; text-transform: uppercase;
  margin: 16px 0 10px; display: flex; align-items: center; gap: 7px;
}
.vt-section::before, .vt-section::after {
  content: ''; flex: 1; height: 1px; background: #f3f4f6;
}

/* ══ PW STRENGTH ══ */
.vt-pw-bar { height: 4px; border-radius: 2px; background: #f3f4f6; margin-top: 5px; overflow: hidden; }
.vt-pw-fill { height: 100%; border-radius: 2px; width: 0; transition: width .3s,background .3s; }

/* ══ RESPONSIVE ══ */
@media (max-width: 460px) {
  .vt-auth-card { border-radius: 14px; }
  .vt-auth-header { padding: 22px 18px 16px; }
  .vt-auth-body { padding: 0 16px 20px; }
  .vt-auth-footer { padding: 14px 16px; }
  .vt-otp-box { width: 40px; height: 48px; font-size: 20px; }
  .vt-2col { grid-template-columns: 1fr; gap: 0; }
  .vt-brand-circle { width: 58px; height: 58px; font-size: 26px; }
  .vt-auth-header h1 { font-size: 17px; }
}
