/* ================================================================
   Soulmate Matrimonial – Login Page CSS
   Matches dashboard dark-navy + red theme
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

#sm-login-wrap {
  min-height: 60vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
}


#sm-login-wrap::before,
#sm-login-wrap::after { content: none; }


/* Card */
.sm-login-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
  animation: sm-login-in 0.4s ease;
}
@keyframes sm-login-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Brand */
.sm-login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.sm-login-brand-icon {
  width: 40px; height: 40px;
  background: #C8102E;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.sm-login-brand span {
  font-size: 22px; font-weight: 800;
  color: #1a1c2e; letter-spacing: -0.3px;
}

/* Heading */
.sm-login-title {
  font-size: 22px; font-weight: 800;
  color: #1a1c2e; text-align: center;
  margin-bottom: 6px; letter-spacing: -0.2px;
}
.sm-login-sub {
  font-size: 13.5px; color: #8b8fab;
  text-align: center; margin-bottom: 28px;
}

/* Alert */
.sm-login-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
  animation: sm-login-in 0.25s ease;
}
.sm-alert-error   { background: #fee2e7; color: #C8102E; border: 1px solid #fca5b4; }
.sm-alert-success { background: #d1fae5; color: #059669; border: 1px solid #6ee7b7; }

/* Form */
.sm-login-form { display: flex; flex-direction: column; gap: 18px; }
.sm-login-field { display: flex; flex-direction: column; gap: 7px; }
.sm-login-field label {
  font-size: 12px; font-weight: 600;
  color: #41435a; text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 6px;
}
.sm-login-field label i { color: #C8102E; font-size: 11px; }

.sm-login-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e4e6f0;
  border-radius: 10px;
  font-size: 14px; color: #1a1c2e;
  background: #f8f9fc;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  font-family: inherit;
}
.sm-login-input::placeholder { color: #b0b3c8; }
.sm-login-input:focus {
  border-color: #C8102E;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,16,46,.09);
}

/* Password toggle */
.sm-login-pass-wrap { position: relative; }
.sm-login-pass-wrap .sm-login-input { padding-right: 44px; }
.sm-pass-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #8b8fab; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  padding: 4px; transition: color 0.18s;
}
.sm-pass-toggle:hover { color: #C8102E; }

/* Meta row */
.sm-login-meta {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.sm-remember-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: #41435a; cursor: pointer;
}
.sm-remember-label input { accent-color: #C8102E; width: 14px; height: 14px; }
.sm-forgot-link {
  font-size: 13px; color: #C8102E; font-weight: 600;
  text-decoration: none; transition: opacity 0.18s;
}
.sm-forgot-link:hover { opacity: 0.8; }

/* Submit button */
.sm-login-submit {
  width: 100%;
  padding: 13px 20px;
  background: #C8102E;
  color: #fff;
  border: none; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  margin-top: 4px;
  letter-spacing: 0.2px;
}
.sm-login-submit:hover:not(:disabled) {
  background: #a50e25;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200,16,46,.35);
}
.sm-login-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Footer */
.sm-login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13.5px; color: #8b8fab;
}
.sm-register-link {
  color: #C8102E; font-weight: 700;
  text-decoration: none; margin-left: 4px;
  transition: opacity 0.18s;
}
.sm-register-link:hover { opacity: 0.8; }

/* Responsive */
@media (max-width: 480px) {
  .sm-login-card { padding: 32px 24px; }
  .sm-login-title { font-size: 20px; }
}

/* ── OTP + multi-screen additions ─────────────────────────── */
.sm-otp-boxes {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(38px, 54px)) !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 22px 0 24px;
  width: 100%;
}
.sm-otp-boxes input,
.sm-login-card .sm-otp-boxes input[type="text"] {
  display: inline-block !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 54px !important;
  height: 56px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border: 1.5px solid #e2e6ee !important;
  border-radius: 12px !important;
  background: #f8f9fc !important;
  color: #1a1f36 !important;
  box-shadow: none !important;
  transition: border-color .18s, box-shadow .18s, background .18s, transform .12s;
  -moz-appearance: textfield;
  caret-color: #C8102E;
}
.sm-otp-boxes input::-webkit-outer-spin-button,
.sm-otp-boxes input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sm-otp-boxes input:focus {
  outline: none !important;
  border-color: #C8102E !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(200,16,46,.12) !important;
  transform: translateY(-1px);
}
.sm-otp-boxes input.is-filled {
  border-color: #C8102E !important;
  background: #fff !important;
}

.sm-login-pass-wrap { position:relative; }
.sm-login-pass-wrap .sm-login-input { padding-right:44px; }
.sm-pass-toggle {
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:transparent; border:0; color:#8b8fab; cursor:pointer;
  width:32px; height:32px; border-radius:6px;
}
.sm-pass-toggle:hover { color:#C8102E; background:rgba(200,16,46,.06); }
.sm-linkbtn {
  background:transparent; border:0; color:#C8102E; font-weight:600;
  cursor:pointer; font-size:13.5px; padding:0; text-decoration:none;
}
.sm-linkbtn:hover { text-decoration:underline; }
.sm-login-alert {
  padding:10px 14px; border-radius:10px; font-size:13.5px; margin-bottom:14px;
  display:flex; align-items:center; gap:8px;
}
.sm-alert-error   { background:#fdecef; color:#a50e25; border:1px solid #f5c2cc; }
.sm-alert-success { background:#e6f7ec; color:#146c2e; border:1px solid #b5e2c3; }

@media (max-width: 480px) {
  .sm-otp-boxes {
    grid-template-columns: repeat(6, minmax(34px, 46px)) !important;
    gap: 8px !important;
  }
  .sm-otp-boxes input,
  .sm-login-card .sm-otp-boxes input[type="text"] {
    max-width: 46px !important;
    height: 50px !important;
    font-size: 19px !important;
    border-radius: 10px !important;
  }
}
