:root {
  --ink: #0b2e6b;
  --muted: #123f85;
  --line: #dce2eb;
  --navy: #0b2e6b;
  --violet: #0a8f2e;
  --medium-blue: #123f85;
  --bright-green: #1aa34a;
  --bg: #f2f5fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 21px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
  color: #293673;
  font-size: 17px;
}
.eyebrow {
  letter-spacing: 1.8px;
  font-size: 11px;
  font-weight: 700;
  color: #8190ad;
  margin: 0 0 12px;
}
.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1210px;
  margin: auto;
  padding: 0 25px;
}
.brand-dark {
  color: var(--ink);
}
.brand-dark .brand-mark {
  background: #293673;
  color: #fff;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 27px;
}
.site-header nav > a {
  color: #35425d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.site-header .nav-button {
  padding: 11px 19px;
  color: white;
  background: var(--navy);
  border-radius: 9px;
}
.hero {
  min-height: 530px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  max-width: 1210px;
  margin: auto;
  padding: 75px 8%;
  background: linear-gradient(117deg, #f0edff 0%, #f8f7ff 44%, #eef3ff 100%);
  border-radius: 25px;
}
.hero-copy {
  max-width: 570px;
}
.hero h1 {
  font:
    800 clamp(37px, 5vw, 64px) / 1.1 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -2px;
  margin: 0 0 21px;
}
.hero h1 em {
  font-style: normal;
  color: var(--violet);
}
.hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 485px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.primary-link {
  border-radius: 10px;
  padding: 15px 20px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.primary-link span {
  padding-left: 20px;
  font-size: 19px;
}
.text-link {
  color: var(--violet);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.hero-art {
  width: 320px;
  height: 335px;
  position: relative;
  flex: none;
}
.art-card {
  position: absolute;
  width: 230px;
  height: 285px;
  border-radius: 21px;
}
.card-back {
  top: 28px;
  right: 0;
  background: #c6bfff;
  transform: rotate(10deg);
}
.card-front {
  top: 8px;
  left: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #273675, #614ec5);
  box-shadow: 0 24px 35px #54558d43;
  color: white;
}
.mini-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: #293673;
  font-weight: 800;
}
.card-front strong {
  font:
    800 25px/1.23 "Plus Jakarta Sans",
    sans-serif;
  margin-top: auto;
}
.card-front small {
  margin-top: 15px;
  color: #dcd9ff;
}
.art-ring {
  position: absolute;
  right: -31px;
  bottom: -35px;
  width: 135px;
  height: 135px;
  border: 24px solid #f5c967;
  border-radius: 50%;
}
.highlights {
  max-width: 1050px;
  margin: 80px auto;
  padding: 0 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
}
.highlights article {
  border-top: 2px solid #dedafc;
  padding-top: 18px;
}
.highlights span {
  font-size: 12px;
  color: var(--violet);
  font-weight: 700;
}
.highlights h2 {
  font:
    800 19px "Plus Jakarta Sans",
    sans-serif;
  margin: 10px 0;
}
.highlights p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
footer {
  background: #0b2e6b;
  color: #d6dcf0;
  padding: 38px max(7%, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.brand-footer {
  font-size: 16px;
}
.brand-footer .brand-mark {
  width: 25px;
  height: 25px;
  font-size: 14px;
}
footer p {
  margin: 0;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 44% 56%;
  max-width: 1440px;
  margin: auto;
  background: white;
}
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 54px 10%;
  color: white;
  background: linear-gradient(145deg, #0b2e6b 0%, #123f85 62%, #0a8f2e 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -150px;
  border-radius: 50%;
  border: 1px solid #ffffff2b;
}
.auth-aside > div {
  position: relative;
  z-index: 1;
  margin-bottom: 25%;
}
.auth-aside .eyebrow {
  color: #c5c9f4;
}
.auth-aside h1 {
  font:
    800 clamp(34px, 4vw, 54px) / 1.13 "Plus Jakarta Sans",
    sans-serif;
  margin: 0;
}
.panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 9%;
  background: #fff;
}
.auth-panel-brand {
  position: absolute;
  top: 18px;
  right: 7%;
}
.screen {
  width: min(100%, 470px);
}
.heading {
  margin-bottom: 30px;
}
.heading h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  margin: 0 0 8px;
}
.heading > p:last-child,
.dashboard-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
form {
  display: grid;
  gap: 17px;
}
label,
legend {
  font-size: 13px;
  font-weight: 700;
  color: #34415c;
}
input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 15px;
  margin-top: 7px;
  outline: none;
  transition: 0.2s;
}
input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px #eeeaff;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.gender-options {
  display: flex;
  gap: 9px;
  margin-top: 8px;
}
.gender-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.gender-options input {
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  accent-color: var(--violet);
  cursor: pointer;
}
.gender-options input:focus {
  box-shadow: none;
}
.gender-options label:has(input:checked) {
  border-color: var(--violet);
  background: #e9f8ee;
  color: #0a8f2e;
}
button {
  border: 0;
  border-radius: 10px;
  padding: 15px 18px;
  background: var(--navy);
  color: white;
  font:
    700 15px "DM Sans",
    sans-serif;
  cursor: pointer;
  transition: 0.2s;
}
button:hover {
  background: #123f85;
  transform: translateY(-1px);
}
button span {
  font-size: 20px;
  float: right;
  line-height: 16px;
}
.switch-text {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 25px 0 0;
}
.switch-text a {
  color: var(--violet);
  font-weight: 700;
  text-decoration: none;
}
.error {
  min-height: 18px;
  color: #c03646;
  font-size: 13px;
  margin: -6px 0 0;
}
.hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.otp-inputs input {
  width: 58px;
  height: 62px;
  margin: 0;
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  padding: 0;
}
.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.dashboard-top h2 {
  font-size: 29px;
}
.secondary {
  background: #edf0f6;
  color: #31405d;
  padding: 10px 14px;
  font-size: 13px;
}
.secondary:hover {
  background: #e0e5ef;
}
.dashboard-copy {
  margin: 8px 0 26px;
}
.profile-card {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 19px;
  background: #f4f5ff;
  border-radius: 14px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1aa34a;
  color: white;
  font:
    700 20px "Plus Jakarta Sans",
    sans-serif;
}
.profile-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.verified {
  color: #0a8f2e;
}
.details {
  margin: 16px 0 0;
}
.details div {
  display: flex;
  justify-content: space-between;
  padding: 16px 3px;
  border-bottom: 1px solid #e8ebf0;
  font-size: 14px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  font-weight: 700;
  color: #34415c;
}
@media (max-width: 760px) {
  .site-header {
    height: 70px;
  }
  .hero {
    border-radius: 0;
    min-height: 550px;
    padding: 60px 8%;
    display: block;
  }
  .hero-art {
    transform: scale(0.72);
    transform-origin: left top;
    margin-top: 38px;
  }
  .highlights {
    grid-template-columns: 1fr;
    gap: 35px;
    margin: 55px auto;
  }
  footer {
    display: block;
    padding: 30px;
  }
  .brand-footer {
    margin-bottom: 18px;
  }
  footer p {
    margin: 10px 0;
  }
  .auth-layout {
    display: block;
  }
  .auth-aside {
    min-height: 220px;
    padding: 28px 8%;
  }
  .auth-aside > div {
    margin: 35px 0 0;
  }
  .auth-aside h1 {
    font-size: 30px;
  }
  .panel {
    min-height: calc(100vh - 220px);
    padding: 110px 8% 42px;
  }
  .auth-panel-brand {
    top: 20px;
    right: 8%;
  }
  .gender-options {
    flex-wrap: wrap;
  }
}
.home-return {
  display: inline-block;
  margin-top: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.home-return:hover {
  text-decoration: underline;
}
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  max-width: none;
  width: 100%;
  padding-right: max(25px, calc((100% - 1160px) / 2));
  padding-left: max(25px, calc((100% - 1160px) / 2));
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(21, 34, 61, 0.13);
}
body:has(.site-header) {
  padding-top: 82px;
}
@media (max-width: 760px) {
  body:has(.site-header) {
    padding-top: 112px;
  }
  .site-header {
    padding-right: 8%;
    padding-left: 8%;
  }
}
.site-header nav a::before,
footer nav a::before {
  display: inline-block;
  margin-right: 6px;
  font-size: 13px;
}
.site-header nav a[href="index.html"]::before {
  content: "\2302";
}
.site-header nav a[href="about.html"]::before,
footer nav a[href="about.html"]::before {
  content: "\24D8";
}
.site-header nav a[href="contact.html"]::before,
footer nav a[href="contact.html"]::before {
  content: "\260E";
}
.site-header nav a[href="login.html"]::before,
footer nav a[href="login.html"]::before {
  content: "\21B5";
}
.site-header nav a[href="register.html"]::before,
footer nav a[href="register.html"]::before {
  content: "\002B";
}
.primary-link::before {
  content: "\25B6";
  margin-right: 8px;
}
.home-return::before {
  content: "\2302";
  margin-right: 7px;
}
button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button::before {
  content: "\2713";
  font-size: 13px;
}
button span {
  float: none;
}
.feature-grid article h3::before {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-right: 8px;
  border-radius: 50%;
  background: #eeeaff;
  color: var(--violet);
  font-size: 12px;
  content: "\2713";
}
.gender-options label::before {
  content: "\25C7";
  color: var(--violet);
}
.overview-icon {
  font-size: 0;
}
.overview-icon::after {
  font-size: 33px;
}
.overview-card:nth-child(1) .overview-icon::after {
  content: "\2302";
}
.overview-card:nth-child(2) .overview-icon::after {
  content: "\25A3";
}
.overview-card:nth-child(3) .overview-icon::after {
  content: "\25A6";
}
.overview-card:nth-child(4) .overview-icon::after {
  content: "\2316";
}
.overview-card:nth-child(5) .overview-icon::after {
  content: "\263A";
}
.overview-card:nth-child(6) .overview-icon::after {
  content: "\25A4";
}
.overview-card:nth-child(7) .overview-icon::after {
  content: "\2316";
}
.overview-card:nth-child(8) .overview-icon::after {
  content: "\2640";
}
.overview-card:nth-child(9) .overview-icon::after {
  content: "\2605";
}
.overview-card:nth-child(10) .overview-icon::after {
  content: "\25A0";
}
.site-header nav a[href="dashboard.html"]::before {
  content: "\25A6";
}
.site-header nav a.active {
  color: var(--violet);
  position: relative;
}
.site-header nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--violet);
}
.site-header nav a.nav-button.active {
  color: #fff;
}
.site-header nav a.nav-button.active::after {
  display: none;
}
footer > .brand-footer,
footer > p:not(:last-child) {
  display: none;
}
footer {
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}
footer > nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  width: 100%;
}
footer > nav a {
  color: #d6dcf0;
  font-weight: 700;
  text-decoration: none;
}
footer > nav a:hover,
footer > nav a.active {
  color: #fff;
}
.home-body .site-header nav > a[href="dashboard.html"] {
  display: none;
}
.site-header nav > a[href="contact.html"] {
  display: none;
}
.brand {
  display: block;
  width: 190px;
  height: 69px;
  flex: 0 0 190px;
  font-size: 0;
  background: url("../img/web-panchayat-logo.png") center / contain no-repeat;
}
.brand .brand-mark,
.brand strong {
  display: none;
}
@media (max-width: 760px) {
  .brand {
    width: 155px;
    height: 56px;
    flex-basis: 155px;
  }
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img {
  max-width: 100%;
}
input,
button,
select,
textarea {
  min-width: 0;
}
.site-header nav {
  min-width: 0;
}
.site-header nav > a {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .auth-layout {
    display: block;
  }
  .auth-aside {
    min-height: 220px;
    padding: 30px 8%;
  }
  .auth-aside > div {
    margin: 42px 0 0;
  }
  .panel {
    min-height: auto;
    padding: 115px 8% 55px;
  }
  .auth-panel-brand {
    top: 22px;
    right: 8%;
  }
  .screen {
    max-width: 520px;
  }
  .site-header {
    padding-right: 5%;
    padding-left: 5%;
  }
}
@media (max-width: 600px) {
  .site-header {
    height: auto;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 5% 15px;
  }
  .site-header nav {
    width: 100%;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .site-header nav > a {
    font-size: 13px;
  }
  .brand {
    width: 150px;
    height: 54px;
    flex-basis: 54px;
  }
  .auth-aside {
    min-height: 190px;
  }
  .auth-aside h1 {
    font-size: 27px;
  }
  .panel {
    padding: 105px 7% 42px;
  }
  .auth-panel-brand {
    right: 50%;
    transform: translateX(50%);
  }
  .heading h2 {
    font-size: 28px;
  }
  .otp-inputs {
    gap: 8px;
  }
  .otp-inputs input {
    width: clamp(48px, 18vw, 58px);
    height: 56px;
  }
  .gender-options {
    display: grid;
    grid-template-columns: 1fr;
  }
  .gender-options label {
    justify-content: flex-start;
  }
  footer > nav {
    gap: 12px 18px;
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  body:has(.site-header) {
    padding-top: 74px;
  }
  .site-header {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 18px #0b2e6b12;
  }
  .auth-layout {
    min-height: 100vh;
  }
  body:has(.auth-layout) {
    padding-bottom: 0;
  }
  .auth-layout .auth-aside {
    display: none;
  }
  .auth-layout .panel {
    width: 100%;
    min-height: 100vh;
    padding: 105px 7% 45px;
  }
  .auth-layout .auth-panel-brand {
    top: 18px;
    right: 50%;
    transform: translateX(50%);
  }
  footer,
  .dashboard-footer {
    display: none;
  }
}
@media (max-width: 600px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5%;
  }
  .site-header > .brand {
    margin: 0 auto;
  }
  .site-header > nav {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-evenly;
    gap: 6px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce2eb;
    background: #fff;
    box-shadow: 0 -8px 24px #0b2e6b1a;
  }
  .site-header > nav > a {
    flex: 1;
    max-width: 130px;
    padding: 10px 8px;
    border-radius: 9px;
    text-align: center;
  }
  .site-header > nav > a.active {
    color: #0a8f2e;
    background: #e8f7ed;
  }
  .site-header > nav > a.active::after {
    display: none;
  }
  .site-header > nav > a.nav-button {
    color: #fff;
    background: #0b2e6b;
  }
}
