/* =========================================================
   DialBharat — Login & Registration page styles  (/css/login.css)
   Loaded after style.css and inner.css. Used by both the Login and
   Registration pages and scoped to them, so nothing leaks elsewhere.
   ========================================================= */

:root {
  --lg-green: #0E7236;
  --lg-green-dark: #0a5a2b;
  --lg-saffron: #FF9933;
  --lg-ink: var(--ink, #14212b);
  --lg-slate: var(--slate, #5b6b78);
  --lg-line: var(--line, #e3e8ec);
  --lg-bg: var(--bg, #faf8f4);
  --lg-error: #c0392b;
}

/* ---------- top strips ---------- */
.tricolor-bar {
  height: 4px;
  background: linear-gradient(90deg, #FF9933 0 33.33%, #ffffff 33.33% 66.66%, #138808 66.66% 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06);
}
.launch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #0b2e1a;
  color: #e9f5ee;
  font: 500 13px/1.4 'Inter', system-ui, sans-serif;
  text-align: center;
}
.launch-bar .dot { color: var(--lg-saffron); font-size: 18px; line-height: 1; }

/* ---------- page shell ---------- */
main.acct.center {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 64px;
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(14, 114, 54, .09), transparent 70%),
    var(--lg-bg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- card ---------- */
.acct .acard {
  width: 100%;
  max-width: 430px;
  padding: 36px 32px 30px;
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  box-shadow: 0 18px 50px -20px rgba(11, 46, 26, .25), 0 2px 6px rgba(0, 0, 0, .04);
}
.acct .acard h1 {
  margin: 0 0 6px;
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--lg-ink);
}
.acct .acard .sub {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 20px;
  text-align: center;
  font-family: 'Baloo 2', 'Inter', system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--lg-slate);
}
.acct .acard .sub span {
  font-weight: 600;
  color: var(--lg-green);
  background: linear-gradient(transparent 62%, rgba(255, 153, 51, .28) 62%);
  padding: 0 2px;
}
/* tricolor accent line under the text */
.acct .acard .sub::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, #FF9933 0 33.33%, #d9dee2 33.33% 66.66%, #138808 66.66% 100%);
}

/* ---------- form ---------- */
.acct .f { display: flex; flex-direction: column; }
.acct .f label {
  margin: 0 0 6px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--lg-ink);
}
.acct .f input:not([type="checkbox"]) {
  width: 100%;
  height: 48px;
  margin: 0 0 16px;
  padding: 0 14px;
  font: 500 1rem 'Inter', system-ui, sans-serif;
  color: var(--lg-ink);
  background: #fff;
  border: 1.5px solid var(--lg-line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.acct .f input:not([type="checkbox"]):hover { border-color: #c7d0d6; }
.acct .f input:not([type="checkbox"]):focus {
  border-color: var(--lg-green);
  box-shadow: 0 0 0 4px rgba(14, 114, 54, .14);
}
.acct .f .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--lg-slate);
  cursor: pointer;
  user-select: none;
}
.acct .f .chk input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--lg-green);
  cursor: pointer;
}

/* ---------- primary button ---------- */
.acct .f .btn.btn-primary {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 1rem 'Inter', system-ui, sans-serif;
  color: #fff;
  background: var(--lg-green);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.acct .f .btn.btn-primary:hover { background: var(--lg-green-dark); box-shadow: 0 8px 20px -8px rgba(14, 114, 54, .6); }
.acct .f .btn.btn-primary:active { transform: translateY(1px); }
.acct .f .btn.btn-primary:focus-visible { outline: 3px solid rgba(14, 114, 54, .35); outline-offset: 2px; }
.acct .f .btn.btn-primary:disabled { opacity: .65; cursor: not-allowed; }

/* ---------- status message ---------- */
.acct .msg {
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--lg-error);
  background: #fdecea;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
}
.acct .msg:empty { display: none; }
.acct .msg.ok,
.acct .msg.success,
.acct .msg.good {
  color: #0b5a2b;
  background: #e8f6ee;
  border-color: #b7e0c7;
}

/* ---------- divider + Google button ---------- */
.acct .or {
  position: relative;
  margin: 24px 0 18px;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--lg-slate);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.acct .or::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--lg-line);
}
.acct .or span { position: relative; padding: 0 12px; background: #fff; }
.acct .gbox { display: flex; justify-content: center; min-height: 44px; }

/* ---------- footer links ---------- */
.acct .alt {
  margin: 18px 0 0;
  text-align: center;
  font-size: .92rem;
  color: var(--lg-slate);
}
.acct .alt + .alt { margin-top: 10px; }
.acct .alt a {
  color: var(--lg-green);
  font-weight: 600;
  text-decoration: none;
}
.acct .alt a:hover { text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .acct .acard .sub { font-size: 1rem; }
  main.acct.center { padding: 28px 12px 48px; align-items: flex-start; }
  .acct .acard { padding: 28px 20px 24px; border-radius: 14px; }
  .acct .acard h1 { font-size: 1.7rem; }
  .launch-bar { font-size: 12px; }
}

/* ---------- logo in place of heading ---------- */
.acct .acard h1.login-logo {
  margin: 0 0 14px;
  line-height: 0;
  text-align: center;
}
.acct .acard h1.login-logo a { display: inline-block; }
.acct .acard h1.login-logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .acct .acard h1.login-logo img { height: 48px; }
}

/* =========================================================
   REGISTRATION PAGE additions
   ========================================================= */

/* two fields side by side on wide screens */
.acct .f .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
}
.acct .f .row2 > div { min-width: 0; display: flex; flex-direction: column; }

/* small helper text under a field */
.acct .f .hint {
  margin: -10px 0 16px;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--lg-slate);
}

/* field with an error */
.acct .f input.bad:not([type="checkbox"]) {
  border-color: var(--lg-error);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, .10);
}

/* terms checkbox: allows wrapping text + links */
.acct .f .chk.terms {
  align-items: flex-start;
  margin: 0 0 20px;
  line-height: 1.5;
}
.acct .f .chk.terms input { margin-top: 3px; flex: 0 0 auto; }
.acct .f .chk.terms a {
  color: var(--lg-green);
  font-weight: 600;
  text-decoration: none;
}
.acct .f .chk.terms a:hover { text-decoration: underline; }

/* trust points under the form */
.acct .perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px dashed var(--lg-line);
  font-size: .82rem;
  font-weight: 500;
  color: var(--lg-slate);
}
.acct .perks li::before {
  content: "✓";
  margin-right: 6px;
  font-weight: 700;
  color: var(--lg-green);
}

@media (max-width: 480px) {
  .acct .f .row2 { grid-template-columns: 1fr; }
}

/* =========================================================
   REGISTRATION PAGE — compact spacing (main.reg only)
   ========================================================= */
main.acct.center.reg {
  min-height: 0;
  align-items: flex-start;
  padding: 20px 16px 28px;
}
.acct.reg .acard { padding: 22px 28px 20px; }
.acct.reg .acard h1.login-logo { margin: 0 0 6px; }
.acct.reg .acard h1.login-logo img { height: 46px; }
.acct.reg .acard .sub { margin: 0 0 16px; padding-bottom: 14px; font-size: 1rem; }
.acct.reg .f label { margin: 0 0 4px; font-size: .82rem; }
.acct.reg .f input:not([type="checkbox"]) { height: 42px; margin: 0 0 10px; }
.acct.reg .f .hint { margin: -6px 0 10px; }
.acct.reg .f .chk { margin: -2px 0 10px; }
.acct.reg .f .chk.terms { margin: 0 0 14px; }
.acct.reg .f .btn.btn-primary { height: 46px; }
.acct.reg .msg { margin: 10px 0 0; }
.acct.reg .alt { margin: 12px 0 0; }
.acct.reg .perks { margin: 14px 0 0; padding-top: 12px; }
@media (max-width: 480px) {
  main.acct.center.reg { padding: 12px 10px 20px; }
  .acct.reg .acard { padding: 20px 16px 18px; }
}

/* =========================================================
   "Back to main site" link (Login, Register, Forgot password)
   ========================================================= */
.acct .back-home {
  margin: 20px 0 0;
  padding-top: 16px;
  text-align: center;
  border-top: 1px solid var(--lg-line);
}
.acct .back-home a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--lg-slate);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.acct .back-home a:hover { color: var(--lg-green); transform: translateX(-2px); }
.acct.reg .back-home { margin-top: 12px; padding-top: 12px; }
