:root {
  --primary: #0d5cf2;
  --primary-dark: #0a3fa8;
  --navy: #0b1f4d;
  --text: #1c2b4a;
  --muted: #7a869f;
  --border: #e3e8f2;
  --bg: #eef3fc;
}

* { box-sizing: border-box; }

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: linear-gradient(135deg, #f3f7ff 0%, #e8f0fd 100%);
  color: var(--text);
  min-height: 100vh;
}

.page { min-height: 100vh; padding: 1.5rem; }

.auth-card {
  max-width: 1000px;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 92, 242, .12);
}

/* ---------- Form side ---------- */
.form-side { background: #fff; position: relative; }
.form-side::after {
  content: "";
  position: absolute; top: 40px; left: 40px;
  width: 170px; height: 60px;
  background-image: radial-gradient(#cfd9ee 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: .8;
  pointer-events: none;
}
.form-inner { padding: 3rem 3.25rem; max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.brand-logo { width: 42px; height: 46px; }
.brand-name { font-weight: 700; font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.brand-sub { font-size: .8rem; color: var(--muted); }

.form-title { font-weight: 700; color: var(--muted); margin-bottom: .25rem; }
.form-subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }

/* inputs */
.input-icon { position: relative; }
.input-icon > i:first-child {
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  font-size: 1.15rem; color: #6b7690; pointer-events: none; z-index: 2;
}
.input-icon .form-control {
  height: 54px;
  padding-right: 48px;
  padding-left: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .9rem;
  background: #fff;
  box-shadow: none;
}
.input-icon.has-toggle .form-control { padding-left: 46px; }
.input-icon .form-control::placeholder { color: #8a94ab; }
.input-icon .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(13, 92, 242, .12);
}
.form-control.is-invalid, .was-validated .form-control:invalid { background-image: none; }
.form-control.is-valid, .was-validated .form-control:valid { background-image: none; }

.toggle-pass {
  position: absolute; top: 50%; left: 12px; transform: translateY(-50%);
  border: 0; background: transparent; color: #6b7690; padding: 4px 6px; z-index: 3;
}
.toggle-pass:hover { color: var(--primary); }

.terms { font-size: .88rem; color: #5b6784; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 0; }
.terms .form-check-input { float: none; margin: 0; width: 1.15rem; height: 1.15rem; border-color: #c5cee3; border-radius: 5px; }
.terms .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.terms .invalid-feedback { flex-basis: 100%; }

.btn-submit {
  height: 52px; border-radius: 10px; font-weight: 500;
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(13, 92, 242, .28);
  transition: .2s;
  
}
.btn-submit:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }

.divider { display: flex; align-items: center; gap: 14px; margin: 1.6rem 0 1.2rem; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.btn-social {
  height: 50px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .9rem; color: #3a4560; transition: .2s;
}
.btn-social i { font-size: 1.25rem; }
.btn-social:hover { border-color: var(--primary); background: #f5f8ff; }

.login-link { margin-top: 1.5rem; font-size: .9rem; color: #5b6784; }
.login-link a { color: var(--primary); font-weight: 500; }

/* ---------- Slider side ---------- */
.slider-side { background: var(--primary-dark); }
.slider {
  position: relative; height: 100%; min-height: 500px; overflow: hidden; color: #fff;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #123a8c;
  opacity: 0; transition: opacity 1s ease; transform: scale(1.04);
}
.slide.active { opacity: 1; transform: scale(1); transition: opacity 1s ease, transform 6s ease; }

.slider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 40, 110, .88) 0%, rgba(13, 80, 200, .45) 45%, rgba(8, 30, 90, .75) 100%);
}

.slider-content { position: relative; z-index: 2; padding: 4rem 3rem 7rem; }
.slider-title { font-size: 1.7rem; line-height: 1.8; margin-bottom: 1rem; font-weight: 300; }
.slider-title strong { font-weight: 700; font-size: 1.9rem; }
.slider-text { font-size: .95rem; line-height: 2; max-width: 340px; opacity: .92; margin-bottom: 2rem; }

.features li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.f-icon {
  flex: 0 0 54px; height: 54px; border-radius: 50%;
  background: var(--primary); display: grid; place-items: center; font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.features b { display: block; font-size: .95rem; font-weight: 700; }
.features small { display: block; font-size: .78rem; opacity: .8; max-width: 200px; line-height: 1.7; }

.slider-controls {
  position: absolute; z-index: 3; bottom: 36px; right: 0; left: 0;
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
}
.arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 1.1rem; display: grid; place-items: center; transition: .2s;
}
.arrow:hover { background: rgba(255, 255, 255, .25); }
.dots { display: flex; gap: .6rem; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .45); transition: .3s;
}
.dot.active { background: #2f80ff; transform: scale(1.25); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .page { padding: 0; align-items: stretch !important; }
  .auth-card { border-radius: 0; box-shadow: none; }
  .form-inner { padding: 2rem 1.25rem; }
  .form-side::after { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .form-inner { padding: 2.5rem 1.75rem; }
  .slider-content { padding: 3rem 2rem 7rem; }
}
.form-side {
  display: flex;
  align-items: center;       /* وسط‌چین عمودی */
  justify-content: center;   /* وسط‌چین افقی */
  min-height: 100%;          /* پر کردن ارتفاع کارت */
}

/* بخش داخلی فرم */
.form-inner {
  width: 100%;
  max-width: 420px;          /* عرض مناسب فرم */
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* وسط‌چین عمودی محتوا */
  height: 100%;              /* هم‌ارتفاع با ستون */
}

.scroll-container {
  height: 150px;
  overflow-y: auto;
   scrollbar-width: none; 

}
@media (max-width: 991.98px) {
  .auth-card .row {
    min-height: auto;
  }
  .form-inner {
    height: auto;
    padding: 2rem 1.25rem;
  }
  .scroll-container {
  height: 170px;
  overflow-y: auto;
   

}
}
@media (max-width: 991.98px) {
  .form-inner {
    position: relative;
    min-height: 100vh; /* یا ارتفاع مناسب دیگر */
    padding-bottom: 6rem; 
  }
  .btn-submit {
    bottom: 1.5rem; /* فاصله کمتر در موبایل */
    left: 1.25rem;
    right: 1.25rem;
  }
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;      /* وسط‌چین افقی */
  justify-content: center;
  text-align: center;
  gap: .5rem;
  margin-bottom: 2rem;
}

.brand-text {
  text-align: center;
}
body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background-image:
    linear-gradient(135deg, rgba(243,247,255,.85), rgba(232,240,253,.85)),
    url("./back.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.background-gray {
 background-color: #f5f6f8;
}
.btn-max-with {
 width: 100%;
}

.btn-previous {
  height: 52px; border-radius: 10px; font-weight: 500;
  background: var(#f7faff); border-color: var(#c5cee3);
  box-shadow: 0 8px 20px rgba(13, 92, 242, .28);
  transition: .2s;
  
}
.btn-previous:hover { background: var(#f8faff); border-color: var(#c5cee3); transform: translateY(-1px); }

.divider { display: flex; align-items: center; gap: 14px; margin: 1.6rem 0 1.2rem; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(#fdfeff); }

.role-card:hover {
  border-color: #4077f8;
  color: #0d5cf2;
   
}

a {
  color: #0b1f4d;
    text-decoration: none;
}
