/* gody-rail-theme.css
   Matches the Janaseva e-Seva login look. Values were measured from a 1920x1080 screenshot;
   sizes are rem-based (1rem = 16px). */

:root {
  /* ---- brand ---- */
  --gr-brand-from: #059669;      /* emerald-600  - icon tile, decorative fills */
  --gr-brand-to:   #0f766e;      /* teal-700 */
  --gr-btn-from:   #047857;      /* emerald-700  - AA-safe start colour for white button text */
  --gr-btn-to:     #0f766e;
  --gr-accent-from:#10b981;      /* emerald-500  - underline rule, focus ring */
  --gr-accent-to:  #f59e0b;      /* amber-500 */
  --gr-dot:        #34d399;      /* emerald-400  - status dot in the pill */
  --gr-headline-from: #a7f3d0;   /* emerald-200  - gradient headline */
  --gr-headline-to:   #fcd34d;   /* amber-300 */

  /* ---- surfaces ---- */
  --gr-card:        rgba(255, 255, 255, .95);   /* measured #f5f6f5 over the dark photo */
  --gr-field:       #ffffff;
  --gr-field-muted: #f1f2f4;
  --gr-border:      #e5e7eb;
  --gr-bg-overlay:  rgba(4, 20, 14, .75);       /* dark green-grey overlay averaging #36433e */

  /* ---- text on light ---- */
  --gr-ink-900: #1f2937;
  --gr-ink-700: #374151;
  --gr-ink-600: #4b5563;
  --gr-ink-500: #6b7280;
  --gr-ink-400: #9ca3af;
  --gr-error:   #b91c1c;

  /* ---- text on dark ---- */
  --gr-on-dark:       #ffffff;
  --gr-on-dark-body:  rgba(255, 255, 255, .82);
  --gr-on-dark-label: rgba(255, 255, 255, .90);
  --gr-on-dark-muted: rgba(255, 255, 255, .68);

  --gr-font: "Inter", "Noto Sans Malayalam", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
:lang(ml) { line-height: 1.7; }

/* ---------- page shell ---------- */
.gr-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  color: var(--gr-on-dark);
  font-family: var(--gr-font);
  -webkit-font-smoothing: antialiased;
  background-color: #1a2926;
  background-image: 
    linear-gradient(var(--gr-bg-overlay), var(--gr-bg-overlay)),
    radial-gradient(circle at 20% 30%, rgba(5, 150, 105, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(15, 118, 110, 0.3) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, auto, auto, 60px 60px;
  background-position: center;
}

.gr-split {
  width: 100%;
  max-width: 72rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .gr-split {
    grid-template-columns: minmax(0, 1fr) 28rem;
    gap: 4rem;
  }
}

/* ---------- hero (left) ---------- */
.gr-hero { min-width: 0; }

.gr-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gr-pill::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--gr-dot);
}

.gr-h1 {
  margin: 1.5rem 0;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.gr-grad {
  display: inline-block;
  background: linear-gradient(90deg, var(--gr-headline-from), var(--gr-headline-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gr-lead {
  max-width: 32rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--gr-on-dark-body);
}

.gr-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 28rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.gr-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gr-on-dark-label);
}

.gr-feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .08);
}

.gr-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .75rem;
  color: var(--gr-on-dark-muted);
}
.gr-trust li {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}

/* ---------- auth column (right) ---------- */
.gr-auth {
  width: 100%;
  max-width: 28rem;
  justify-self: center;
}
@media (min-width: 1024px) {
  .gr-auth { justify-self: end; }
}

.gr-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--gr-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--gr-ink-900);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
@media (max-width: 479.98px) {
  .gr-card { padding: 1.5rem; }
}

.gr-tile {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--gr-brand-from), var(--gr-brand-to));
  box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
}

.gr-card__title {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--gr-ink-900);
}

.gr-card__sub {
  margin: .25rem 0 0;
  text-align: center;
  font-size: .875rem;
  line-height: 1.25rem;
  color: var(--gr-ink-600);
}

.gr-card__rule {
  width: 5rem;
  height: .1875rem;
  margin: 1rem auto 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gr-accent-from), var(--gr-accent-to));
}

/* ---------- form controls ---------- */
.gr-field {
  margin-bottom: 1.25rem;
}

.gr-label {
  display: block;
  margin-bottom: .5rem;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--gr-ink-700);
}

.gr-control {
  position: relative;
}

.gr-input {
  width: 100%;
  height: 3.125rem;
  padding: 0 1rem;
  border: 1px solid var(--gr-border);
  border-radius: .75rem;
  background: var(--gr-field);
  color: var(--gr-ink-900);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gr-input::placeholder { color: var(--gr-ink-500); }
.gr-input:focus-visible {
  outline: 0;
  border-color: var(--gr-accent-from);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
}
.gr-input[aria-invalid="true"] { border-color: var(--gr-error); }

.gr-control--icon .gr-input { padding-left: 2.5rem; }
.gr-control--action .gr-input { padding-right: 2.75rem; }

.gr-input:-webkit-autofill {
  -webkit-text-fill-color: var(--gr-ink-900);
  box-shadow: 0 0 0 1000px var(--gr-field) inset;
}

.gr-control__icon {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gr-ink-400);
  pointer-events: none;
}
.gr-control__action {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
}

.gr-icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gr-icon--lg {
  width: 2rem;
  height: 2rem;
}

.gr-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: var(--gr-ink-600);
  cursor: pointer;
  transition: background .15s ease;
}
.gr-icon-btn:hover { background: #f3f4f6; }
.gr-icon-btn:focus-visible {
  outline: 3px solid rgba(16, 185, 129, .5);
  outline-offset: 2px;
}

.gr-captcha {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.gr-captcha__code {
  flex: 1;
  display: grid;
  place-items: center;
  height: 3.25rem;
  border: 1px solid #eaebef;
  border-radius: .75rem;
  background: var(--gr-field-muted);
  color: var(--gr-ink-700);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .15em;
  font-family: monospace, sans-serif;
  user-select: none;
}

.gr-error {
  margin: 0 0 1rem;
  padding: .625rem .875rem;
  border-radius: .5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: .875rem;
  color: var(--gr-error);
}

.gr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 3rem;
  margin-top: 1.25rem;
  border: 0;
  border-radius: .75rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gr-btn-from), var(--gr-btn-to));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(4, 120, 87, .30);
  transition: filter .15s ease, transform .05s ease;
}
.gr-btn:hover { filter: brightness(1.07); }
.gr-btn:active { transform: translateY(1px); }
.gr-btn:focus-visible {
  outline: 3px solid rgba(16, 185, 129, .5);
  outline-offset: 2px;
}
.gr-btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  filter: none;
}

.gr-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0 0;
  font-size: .8125rem;
  color: var(--gr-ink-600);
}
.gr-links a {
  color: inherit;
  text-decoration: none;
}
.gr-links a:hover {
  color: var(--gr-brand-to);
  text-decoration: underline;
}

.gr-quick-access {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--gr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
}
.gr-quick-access a {
  color: var(--gr-brand-to);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gr-quick-access a:hover {
  text-decoration: underline;
}

.gr-copy {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: .75rem;
  color: var(--gr-on-dark-muted);
}

/* ---------- small screens ---------- */
@media (max-width: 639.98px) {
  .gr-features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
