/* GR-FEAT-002: customer sign-in and sign-up, in the portal's brand (green #038144, deep green #025C31, purple bins).
   Scoped to .gr-auth so the public website header and footer around these pages are untouched. */
.gr-auth {
  --g: #038144; --gd: #025C31; --lime: #9CCC3C; --purple: #5B2A86; --purple-soft: #EFE8F6;
  --ground: #F5F7F2; --ink: #14261A; --ink2: #2D4236; --mut: #4F6357; --line: #DCE4DA; --red: #B42318;
  background: var(--ground); padding: 48px 16px 64px; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
}
.gr-auth * { box-sizing: border-box; }
.gr-auth .gr-auth-card { max-width: 460px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 32px 28px; box-shadow: 0 1px 2px rgba(20,38,26,.06), 0 12px 32px rgba(20,38,26,.08); }
.gr-auth .gr-auth-card.wide { max-width: 760px; }
.gr-auth .gr-auth-logo { display: block; margin: 0 auto 12px; height: 72px; width: auto; }
.gr-auth h1 { font-family: Montserrat, Inter, sans-serif; font-size: 26px; font-weight: 800; text-align: center; margin: 0; color: var(--ink); letter-spacing: -.2px; }
.gr-auth .gr-sub { text-align: center; color: var(--mut); margin: 6px 0 24px; font-size: 15px; }
.gr-auth h2 { font-family: Montserrat, Inter, sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); margin: 28px 0 4px; display: flex; align-items: center; gap: 10px; }
.gr-auth h2 .n { width: 26px; height: 26px; border-radius: 13px; background: var(--g); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.gr-auth .gr-help { color: var(--mut); font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
.gr-auth .gr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gr-auth .gr-grid .full { grid-column: 1 / -1; }
.gr-auth .gr-grid.three { grid-template-columns: 1.4fr 1fr 1fr; }
.gr-auth label { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); margin: 0 0 6px; }
.gr-auth label .opt { font-weight: 400; color: var(--mut); }
.gr-auth input[type=text], .gr-auth input[type=email], .gr-auth input[type=password], .gr-auth input[type=tel] {
  width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--ink); background: #fff; font-family: inherit;
}
.gr-auth input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(3,129,68,.15); }
.gr-auth .is-invalid { border-color: var(--red) !important; }
.gr-auth .gr-err { color: var(--red); font-size: 13px; margin-top: 5px; }
.gr-auth .gr-pw { position: relative; }
.gr-auth .gr-pw input { padding-right: 76px; }
.gr-auth .gr-pw button { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ground); color: var(--ink2); font-weight: 600; font-size: 13px; cursor: pointer; }
.gr-auth .gr-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gr-auth .gr-type { position: relative; display: block; margin: 0; cursor: pointer; }
.gr-auth .gr-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gr-auth .gr-type span { display: block; height: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 14px; font-weight: 400; }
.gr-auth .gr-type strong { display: block; font-family: Montserrat, Inter, sans-serif; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.gr-auth .gr-type small { display: block; color: var(--mut); font-size: 13px; line-height: 1.4; }
.gr-auth .gr-type input:checked + span { border-color: var(--g); background: #F1F8EC; }
.gr-auth .gr-type input:focus-visible + span { box-shadow: 0 0 0 3px rgba(3,129,68,.25); }
.gr-auth .gr-box { background: var(--ground); border-radius: 14px; padding: 16px; margin-top: 4px; }
.gr-auth .gr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink2); font-weight: 400; margin: 22px 0 0; }
.gr-auth .gr-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--g); flex: none; }
.gr-auth .gr-check a { color: var(--g); font-weight: 600; }
.gr-auth .gr-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; margin-top: 22px; border: 0; border-radius: 16px; background: var(--g); color: #fff; font-family: Montserrat, Inter, sans-serif; font-size: 17px; font-weight: 700; cursor: pointer; }
.gr-auth .gr-btn:disabled { opacity: .8; cursor: progress; }
.gr-auth .gr-note { text-align: center; color: var(--mut); font-size: 13px; margin: 10px 0 0; }
.gr-auth .gr-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 15px; }
.gr-auth .gr-links a, .gr-auth .gr-alt a { color: var(--g); font-weight: 600; text-decoration: none; }
.gr-auth .gr-links a:hover, .gr-auth .gr-alt a:hover { text-decoration: underline; }
.gr-auth .gr-alt { text-align: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mut); font-size: 15px; }
.gr-auth .gr-alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.gr-auth .gr-alert.ok { background: #E4F2DA; color: var(--gd); }
.gr-auth .gr-alert.bad { background: #FEF3F2; color: var(--red); }
.gr-auth .gr-alert ul { margin: 6px 0 0; padding-left: 18px; }
.gr-auth [hidden] { display: none !important; }
@media (max-width: 640px) {
  .gr-auth { padding: 24px 12px 48px; }
  .gr-auth .gr-auth-card { padding: 24px 18px; border-radius: 20px; }
  .gr-auth .gr-grid, .gr-auth .gr-grid.three, .gr-auth .gr-types { grid-template-columns: 1fr; }
}
