:root{
  --nr-green:#4D6B2D;
  --nr-green-2:#3E5E22;
  --nr-cream:#FBF7EE;
  --nr-cream-2:#F5EFE2;
  --nr-ink:#1D2417;
  --nr-muted:rgba(29,36,23,.66);
  --nr-gold:#D6A12E;
  --nr-shadow:0 18px 45px rgba(18,24,12,.22);
  --nr-radius-lg:28px;
  --nr-radius-md:18px;
  --nr-radius-sm:14px;
}

/* Hide the site chrome for an app-like login screen. */
.app-header{display:none}
.app-main{padding:0; max-width:none}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.nr-auth{
  min-height:calc(100dvh);
  position:relative;
  background:#0f130c;
  display:grid;
  place-items:stretch;
  overflow:hidden;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--nr-ink);
}

.nr-auth-bg{
  position:absolute; inset:-24px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,.06)),
    url("./assets/nellore-heritage-sunset.82b9fe3e9a08.png");
  background-size:cover;
  background-position:center;
  filter:blur(14px) saturate(1.08) contrast(1.02);
  transform:scale(1.08);
}

.nr-auth-scrim{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 560px at 50% 30%, rgba(251,247,238,.55), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(18,20,14,.28), rgba(18,20,14,.55));
}

.nr-auth-shell{
  position:relative;
  z-index:2;
  width:min(100%, 520px);
  margin:0 auto;
  padding:18px 14px 18px;
  display:grid;
  place-items:stretch;
}

/* Desktop preview: show a phone-like surface centered. */
@media (min-width: 860px){
  .nr-auth-shell{
    width:min(100%, 560px);
    padding:34px 18px 34px;
  }
}

.nr-surface{
  position:relative;
  width:100%;
  min-height:100dvh;
  border-radius:0;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(251,247,238,.96), rgba(245,239,226,.92));
  box-shadow:none;
}

@media (min-width: 540px){
  .nr-surface{
    min-height:auto;
    aspect-ratio: 9 / 16;
    border-radius:36px;
    box-shadow:0 30px 90px rgba(0,0,0,.35);
  }
}

.nr-surface-bg{
  display:none;
}

.nr-card{
  position:relative;
  left:auto; right:auto;
  bottom:auto;
  margin:26px auto 0;
  z-index:3;
  border-radius:var(--nr-radius-lg);
  background:rgba(251,247,238,.72);
  border:1px solid rgba(29,36,23,.10);
  box-shadow:var(--nr-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding:18px 16px 14px;
}

@media (min-width:540px){
  .nr-card{ padding:20px 18px 16px; }
}

@media (min-width:860px){
  .nr-card{ margin-top:32px; }
}

.nr-card-brand{
  display:grid;
  place-items:center;
  margin:4px 0 6px;
}

.nr-heritage-logo{
  width:min(360px, 92%);
  height:auto;
  display:block;
  filter:drop-shadow(0 18px 26px rgba(18,24,12,.14));
}

.nr-card-head{ text-align:center; padding:4px 8px 12px; }
.nr-step{
  display:inline-flex;
  align-items:center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(29,36,23,.12);
  background: rgba(255,255,255,.55);
  color: rgba(29,36,23,.60);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 auto 10px;
}
.nr-card-title{
  margin:0;
  font-size:22px;
  line-height:1.12;
  font-weight:820;
  color:rgba(21,27,16,.96);
}
.nr-card-sub{
  margin:6px 0 0;
  font-size:13px;
  color:var(--nr-muted);
}

.nr-error{
  margin:0 0 10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(164,48,27,.08);
  border:1px solid rgba(164,48,27,.18);
  color:rgba(108,22,10,.92);
  font-size:13px;
}

.nr-form{ display:grid; gap:12px; }

.nr-field{
  position:relative;
  display:grid;
}

.nr-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:rgba(29,36,23,.50);
  pointer-events:none;
}

.nr-input{
  width:100%;
  height:50px;
  border-radius:16px;
  border:1px solid rgba(29,36,23,.16);
  background:rgba(255,255,255,.66);
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset;
  padding:0 46px 0 42px;
  font-size:14px;
  color:rgba(21,27,16,.96);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nr-input::placeholder{ color:rgba(29,36,23,.42); }

.nr-input:focus{
  border-color:rgba(77,107,45,.55);
  box-shadow:0 0 0 4px rgba(77,107,45,.14);
}

.nr-textarea{
  height:auto;
  min-height: 96px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.nr-otp-field{ gap: 0; }
.nr-otp-hidden{
  position:absolute;
  opacity:0;
  pointer-events:none;
  height:1px;
  width:1px;
  left:-9999px;
  top:auto;
}
.nr-otp-label{
  font-weight: 900;
  font-size: 12px;
  color: rgba(29,36,23,.70);
  margin: 2px 0 10px;
  text-align:left;
  padding-left: 4px;
}
.nr-otp{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.nr-otp-box{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(29,36,23,.16);
  background: rgba(255,255,255,.70);
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset;
  text-align:center;
  font-size: 18px;
  font-weight: 900;
  color: rgba(21,27,16,.96);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nr-otp-box:focus{
  border-color:rgba(77,107,45,.55);
  box-shadow:0 0 0 4px rgba(77,107,45,.14);
  transform: translateY(-1px);
}
.nr-otp-box::selection{ background: rgba(214,161,46,.35); }
.nr-otp-sub{
  margin: 10px 0 0;
  text-align:center;
}

@media (max-width: 380px){
  .nr-otp{ gap: 8px; }
  .nr-otp-box{
    width: 46px;
    height: 46px;
    font-size: 17px;
    border-radius: 14px;
  }
}

@media (max-width: 340px){
  .nr-otp{ gap: 6px; }
  .nr-otp-box{ width: 42px; height: 42px; }
}

.nr-eye{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(29,36,23,.16);
  background:rgba(255,255,255,.68);
  color:rgba(29,36,23,.62);
  display:grid;
  place-items:center;
  cursor:pointer;
}

.nr-eye svg{ display:none; }
.nr-eye[data-state="hidden"] .nr-eye-open{ display:block; }
.nr-eye[data-state="shown"] .nr-eye-closed{ display:block; }

.nr-eye:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(77,107,45,.14);
  border-color:rgba(77,107,45,.55);
}

.nr-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:2px 2px 6px;
}

.nr-check{
  display:flex;
  align-items:center;
  gap:10px;
  user-select:none;
}

.nr-check-input{
  position:absolute;
  opacity:0;
  width:1px; height:1px;
}

.nr-check-box{
  width:20px; height:20px;
  border-radius:6px;
  border:1px solid rgba(29,36,23,.22);
  background:rgba(255,255,255,.52);
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}

.nr-check-box::after{
  content:"";
  width:10px; height:6px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg) translateY(-1px);
  opacity:0;
}

.nr-check-input:checked + .nr-check-box{
  background:linear-gradient(180deg, #5d7d37, var(--nr-green));
  border-color:rgba(77,107,45,.55);
}
.nr-check-input:checked + .nr-check-box::after{ opacity:1; }
.nr-check-text{ font-size:13px; color:rgba(21,27,16,.82); font-weight:620; }

.nr-link{
  color:rgba(47, 74, 26, .98);
  text-decoration:none;
  font-weight:780;
  font-size:13px;
}
.nr-link:hover{ text-decoration:underline; }

.nr-btn{
  height:52px;
  border-radius:18px;
  border:1px solid rgba(29,36,23,.14);
  background:rgba(255,255,255,.6);
  box-shadow:0 14px 30px rgba(18,24,12,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 14px;
  cursor:pointer;
  font-weight:760;
  font-size:14px;
  color:rgba(21,27,16,.92);
  transition:transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.nr-btn:active{ transform:translateY(1px); filter:saturate(.98); }
.nr-btn[disabled],
.nr-btn[aria-disabled="true"]{
  opacity:.72;
  cursor:not-allowed;
  transform:none !important;
  filter:none !important;
}

.nr-btn[data-loading="1"]{
  position:relative;
}
.nr-btn[data-loading="1"]::after{
  content:"";
  width:16px;
  height:16px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.65);
  border-top-color:rgba(255,255,255,.0);
  margin-left:10px;
  display:inline-block;
  animation:nrspin 0.9s linear infinite;
}
.nr-btn-ghost[data-loading="1"]::after{
  border-color:rgba(29,36,23,.40);
  border-top-color:rgba(29,36,23,0);
}

@keyframes nrspin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

.nr-btn-primary{
  border-color:rgba(77,107,45,.35);
  background:linear-gradient(90deg, #567b33, #3f6123);
  color:#fff;
  box-shadow:0 18px 40px rgba(22,35,12,.28);
  margin-top:2px;
}
.nr-btn-primary .nr-btn-icon{ margin-left:auto; display:flex; align-items:center; opacity:.92; }
.nr-btn-primary span:first-child{ margin-left:auto; }
.nr-btn-primary:hover{ filter:saturate(1.05); }

.nr-btn-create{
  background:linear-gradient(90deg, rgba(255,255,255,.96), rgba(248,242,229,.96));
  border-color:rgba(86,123,51,.42);
  color:#2c4619;
  box-shadow:0 14px 30px rgba(32,48,18,.13);
}
.nr-btn-create .nr-btn-icon{ margin-left:auto; display:flex; align-items:center; opacity:.86; }
.nr-btn-create span:first-child{ margin-left:auto; }
.nr-btn-create:hover{
  border-color:rgba(86,123,51,.62);
  box-shadow:0 16px 34px rgba(32,48,18,.17);
}

.nr-btn-ghost{
  background:rgba(255,255,255,.60);
  border-color:rgba(29,36,23,.14);
  box-shadow:0 8px 18px rgba(18,24,12,.07);
  height:48px;
  font-size:13px;
}

.nr-social{
  width:26px; height:26px;
  border-radius:10px;
  background:rgba(251,247,238,.7);
  border:1px solid rgba(29,36,23,.10);
  display:grid;
  place-items:center;
}

.nr-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:4px 0 0;
  opacity:.9;
}
.nr-divider span{
  height:1px;
  background:rgba(29,36,23,.14);
  flex:1;
}
.nr-divider em{
  font-style:normal;
  font-size:12px;
  color:rgba(29,36,23,.44);
}

.nr-signup{
  margin:2px 0 0;
  text-align:center;
  font-size:13px;
  color:rgba(29,36,23,.68);
}
.nr-signup .nr-link{ font-weight:820; }

.nr-support-card{
  display:grid;
  gap:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(29,36,23,.12);
  background:rgba(255,255,255,.62);
  box-shadow:0 10px 24px rgba(18,24,12,.07);
}
.nr-support-card p{
  margin:0;
  color:rgba(29,36,23,.72);
  font-size:14px;
  line-height:1.55;
  font-weight:680;
}
.nr-support-note{
  text-align:center;
}

.nr-toast{
  margin:10px auto 0;
  max-width: 92%;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(29,36,23,.72);
  color:rgba(255,255,255,.92);
  font-size:12px;
  text-align:center;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}

.muted-sm{ color:var(--nr-muted); font-size:12px; }
.nr-help{
  margin-top:-2px;
  text-align:center;
  line-height:1.35;
}

/* Wider scenic background: keep the card centered and readable on desktops. */
@media (min-width: 1100px){
  .nr-auth-shell{ width:min(100%, 620px); }
  .nr-card{ width:min(560px, 100%); }
}

/* Prefer reduced motion. */
@media (prefers-reduced-motion: reduce){
  .nr-btn, .nr-input{ transition:none; }
}
