/* ===========================
   LOGIN PAGE THEME (WHITE + BLUE)
   =========================== */

body.login-body {
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
  font-family: "Vazirmatn", sans-serif;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem; /* prevent edges on small screens */
}

body {
  overflow-x: hidden;
}

/* Card */
.login-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 28px rgba(93, 173, 236, 0.25);
  color: #0f172a;
  animation: fadeIn 0.6s ease;
}

/* Logo */
.login-logo {
  max-width: 160px;
  display: block;
  margin: 0 auto 1.5rem;
  animation: logoFadeIn 0.8s ease;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* OTP Row */
.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto 1rem;
}
.otp-input {
  width: 100%;
  height: 55px;
  text-align: center;
  font-size: 1.3rem;
  border: 2px solid #d0e7fa;
  background: #f8fbff;
  color: #0f172a;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.otp-input:focus {
  border-color: #318fe3;
}

/* Buttons */
.btn-primary,
.btn-success {
  background-color: #318fe3 !important;
  border: none !important;
  outline: none !important;
  color: #fff !important;
  font-weight: 600;
  transition:  0.3s ease;
}
.btn-primary:hover,
.btn-success:hover {
  background-color: #2677c6 !important;
}
.btn-success:focus,
.btn-primary:focus {

}

/* Links */
a {
  color: #318fe3;
  transition: color 0.3s ease;
  font-weight: 500;
}
a:hover {
  color: #2677c6;
}

/* Steps spacing */
#step1 > *:not(:last-child),
#step2 > *:not(:last-child) {
  margin-bottom: 1rem !important;
}
#step1 h5,
#step2 h5 {
  margin-bottom: 0.75rem !important;
}
#step1 p,
#step2 p {
  margin-bottom: 1.25rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .login-card {
    max-width: 90%;
    padding: 1.5rem 1.8rem;
  }
}
@media (max-width: 575.98px) {
  .otp-inputs {
    grid-template-columns: repeat(6, 40px);
    gap: 8px;
    justify-content: center;
  }
  .otp-input {
    height: 48px;
    font-size: 1.1rem;
  }
  .login-logo {
    max-width: 130px;
    margin-bottom: 1rem;
  }
}
@media (max-width: 380px) {
  .otp-inputs {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  .otp-input {
    height: 44px;
    font-size: 1rem;
  }
  .login-card {
    padding: 1.2rem 1rem;
  }
}
