
/* NisfudDeen — Auth পেজ CSS (theme.css থেকে হুবহু; Header/Footer/Menu বাদ) */

:root {
  --nd-primary:var(--accent);
  --nd-accent:var(--gold);
  --nd-ink: #16211f;
  --nd-muted: #63716d;
  --nd-paper: #fbf8f1;
  --nd-surface: #ffffff;
  --nd-line: #e7dfd1;
  --nd-soft:var(--tint);
  --nd-shadow: 0 18px 46px rgba(22, 33, 31, 0.12);
  --nd-container-max: 1180px;
  --nd-gutter: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nisfuddeen-theme {
  margin: 0;
  color: var(--nd-ink);
  font-family: var(--nd-ff,"Hind Siliguri", "Nirmala UI", "Segoe UI", Arial, sans-serif);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.nd-container { width: min(var(--nd-container-max), calc(100% - var(--nd-gutter) * 2)); margin-inline: auto; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

.nd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 850;
}
.nd-button-primary { background: var(--nd-primary); color: #fff; box-shadow: 0 12px 26px color-mix(in srgb,var(--accent) 22%,transparent); }
.nd-button-soft { background: var(--nd-soft); color: var(--nd-primary); border-color: var(--line); }
.nd-button-outline { color: #fff; border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.08); }

.nd-form-error { color: #b3261e; background: #fdecea; padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.nd-form-success { color: #1e6b4d; background: #e7f5ee; padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.nd-frontend-form { display: grid; gap: 16px; max-width: 720px; }
.nd-frontend-form label { display: grid; gap: 6px; font-weight: 600; }
.nd-frontend-form input, .nd-frontend-form select, .nd-frontend-form textarea {
	padding: 10px 12px; border-radius: 8px; border: 1px solid var(--nd-line); font: inherit;
}
.nd-frontend-form .nd-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.nd-frontend-form .nd-field-full { max-width: 100%; }

/* Login System (ধাপ ১) — /login ও /register পেজ; Email Verification
   (ধাপ ৩) ও Password Reset (ধাপ ৪) পেজও একই .nis-auth-wrapper শেয়ার করে,
   যাতে সব Auth পেজ (Login, Register, Verify Email, Forgot/Reset
   Password) একই প্রিমিয়াম, সামঞ্জস্যপূর্ণ Look পায়। */
.nis-auth-wrapper {
	display: grid;
	gap: 14px;
	max-width: 420px;
	margin: 0 auto;
	background: var(--nd-surface);
	border: 1px solid var(--nd-line);
	border-radius: 14px;
	padding: 32px 28px;
	box-shadow: var(--nd-shadow);
	animation: nd-auth-fade .32s ease;
}
.nis-auth-wrapper h2 { margin: 0 0 4px; text-align: center; }
.nis-auth-wrapper .nd-frontend-form { gap: 12px; max-width: 100%; }
.nis-auth-wrapper .nd-button { width: 100%; gap: 10px; }
.nis-auth-wrapper .nd-form-error,
.nis-auth-wrapper .nd-form-success { animation: nd-auth-message-in .22s ease; }
.nis-auth-wrapper .nd-form-note { text-align: center; margin: -4px 0 2px; line-height: 1.5; }
.nis-auth-wrapper .nd-frontend-form input {
	transition: border-color .18s ease, box-shadow .18s ease;
}
.nis-auth-wrapper .nd-frontend-form input:focus {
	outline: none;
	border-color: var(--nd-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent);
}
.nis-auth-wrapper .nd-button { transition: transform .15s ease, box-shadow .18s ease, background-color .15s ease; }
.nis-auth-wrapper .nd-button:hover { transform: translateY(-1px); }
.nis-auth-wrapper .nd-button:active { transform: translateY(0); }
@keyframes nd-auth-fade {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes nd-auth-message-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.nis-auth-wrapper,
	.nis-auth-wrapper .nd-form-error,
	.nis-auth-wrapper .nd-form-success { animation: none; }
	.nis-auth-wrapper .nd-button:hover { transform: none; }
}
.nd-google-btn { color: var(--nd-ink); border-color: var(--nd-line); background: #fff; }
.nd-google-btn:hover { background: var(--nd-soft); }
.nd-google-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.nd-auth-divider { display: flex; align-items: center; gap: 12px; color: var(--nd-muted); font-size: .85rem; margin: 2px 0; }
.nd-auth-divider::before, .nd-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--nd-line); }
.nd-auth-collapsible[hidden] { display: none; }
.nd-auth-forgot { justify-self: end; font-size: .85rem; color: var(--nd-primary); font-weight: 700; margin-top: -4px; }
.nd-auth-switch { text-align: center; font-weight: 700; color: var(--nd-primary); margin-top: 4px; }
.nd-auth-switch:hover { text-decoration: underline; }

@media (max-width: 480px) {
	.nis-auth-wrapper { padding: 24px 18px; border-radius: 12px; }
}

.nd-form-note { color: #6b7a75; font-size: 0.92rem; }



/* Standalone পেজ: শুধু থিমের Background + মাঝখানে ফর্ম */
body.nisfuddeen-theme { min-height: 100vh; }
main.nd-auth-page { min-height: 60vh; display: grid; align-items: center; padding-block: 48px; }
.nis-auth-wrapper { width: 100%; }
@media (max-width: 640px) {
  .nd-container { width: min(100% - 28px, 1180px); }
  .nd-button { width: 100%; }
  main.nd-auth-page { padding-block: 40px; }
}
[data-nd-state][hidden] { display: none; }






/* Email Verification: ৬-ঘরের OTP ইনপুট (থিমের ইনপুট স্টাইলেরই ধারাবাহিকতা) */
.nd-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.nis-auth-wrapper .nd-frontend-form .nd-otp input { min-width: 0; width: 100%; height: 52px; padding: 0; text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--nd-ink); } .nd-otp { gap: 6px; } .nis-auth-wrapper .nd-frontend-form .nd-otp input { height: 46px; font-size: 1.2rem; }