:root {
  --brand-pink: #e2186b;
  --brand-indigo: #2b2f8a;
  --brand-blue: #2b5bff;
  --brand-teal: #1ab6c6;
  --brand-orange: #ff9a3d;
  --brand-ink: #132042;
  --brand-muted: #5f6b7a;
  --page-bg: #f6f7fb;
  --card-shadow: 0 24px 60px rgba(17, 36, 74, 0.18);
  --soft-shadow: 0 12px 28px rgba(17, 36, 74, 0.12);
}

* {
  box-sizing: border-box;
}

body.parents-login-page {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #f6f7fb;
  color: #132042;
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

body.parents-login-page::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle at top right,
    rgba(255, 154, 61, 0.45),
    rgba(26, 182, 198, 0)
  );
  z-index: 0;
}

body.parents-login-page::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle at bottom left,
    rgba(226, 24, 107, 0.25),
    rgba(43, 91, 255, 0)
  );
  z-index: 0;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.login-header {
  background: #ffffff;
  border-top: 6px solid #e2186b;
  border-bottom: 1px solid #e2e6f2;
  box-shadow: 0 12px 28px rgba(17, 36, 74, 0.12);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bank-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid #e2e6f2;
  border-radius: 10px;
  background: #ffffff;
}

.bank-logo {
  height: 38px;
  width: auto;
  display: block;
}

.bank-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2b2f8a;
}

.school-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.6px;
  color: #2b2f8a;
  text-align: center;
  flex: 1 1 auto;
}

.portal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(43, 91, 255, 0.1);
  color: #2b5bff;
  font-weight: 600;
  font-size: 0.85rem;
}

.header-band {
  height: 12px;
  background: linear-gradient(90deg, #2b2f8a, #2b5bff);
}

.login-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 36px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.hero-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(17, 36, 74, 0.18);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-panel::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(43, 91, 255, 0.18),
    rgba(43, 47, 138, 0)
  );
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(226, 24, 107, 0.2),
    rgba(226, 24, 107, 0)
  );
}

.hero-emblem {
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero-emblem::before,
.hero-emblem::after {
  opacity: 0.35;
}

.emblem-image {
  width: min(320px, 90%);
  height: auto;
  display: block;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  background: #f6f7fb;
  border: 1px solid #e2e6f2;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.hero-logo img {
  max-width: 120px;
  height: auto;
  display: block;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #2b2f8a;
}

.hero-subtitle {
  color: #5f6b7a;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.hero-contact {
  font-size: 0.85rem;
  color: #5f6b7a;
}

.login-card {
  border-radius: 20px;
  padding: 28px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), #ffffff);
  border: 1px solid #e2e6f2;
  box-shadow: 0 24px 60px rgba(17, 36, 74, 0.18);
}

.login-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.login-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #2b2f8a;
}

.login-card-accent {
  width: 52px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2186b, #ff9a3d);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  font-weight: 600;
  color: #132042;
  font-size: 0.9rem;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d6dbe8;
  border-radius: 10px;
  padding: 0 12px;
  height: 46px;
}

.input-shell i {
  color: #e2186b;
}

.input-shell input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  color: #132042;
  background: transparent;
}

.input-shell input::placeholder {
  color: #9aa4b2;
}

.login-btn {
  margin-top: 8px;
  height: 46px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #e2186b, #ff9a3d, #1ab6c6);
  box-shadow: 0 14px 28px rgba(226, 24, 107, 0.25);
}

.login-btn:hover {
  background: linear-gradient(135deg, #1ab6c6, #e2186b, #ff9a3d);
}

.login-note {
  text-align: center;
  font-size: 0.8rem;
  color: #5f6b7a;
}

.login-footer {
  background: #e2186b;
  color: #ffffff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  height: 30px;
  width: auto;
  display: block;
  background: #ffffff;
  border-radius: 6px;
  padding: 2px 6px;
}

@media (max-width: 992px) {
  .login-main {
    grid-template-columns: 1fr;
    padding-bottom: 32px;
  }

  .hero-panel {
    order: 2;
  }

  .login-card {
    order: 1;
  }
}

@media (max-width: 576px) {
  .login-header {
    padding: 12px 16px;
  }

  .school-title {
    font-size: 1rem;
  }

  .hero-panel {
    padding: 24px;
  }

  .login-card {
    padding: 22px;
  }

  .login-footer {
    justify-content: center;
    text-align: center;
  }
}
