:root {
  --ink: #102f59;
  --muted: #66758c;
  --blue: #155edb;
  --edge: #d6e1ee;
  --background: #f6faff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
.auth-layout {
  min-height: calc(100svh - 58px);
  display: grid;
  grid-template-columns: minmax(450px, 49%) minmax(0, 51%);
  flex: 1;
  overflow: hidden;
}
.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 44px 54px 58px;
  background: radial-gradient(circle at 3% 87%, #dcecff 0, transparent 52%),
    linear-gradient(125deg, #eaf5ff, #f8fbff 66%);
  isolation: isolate;
}
.auth-panel::before,
.auth-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: -1;
}
.auth-panel::before {
  width: 570px;
  height: 570px;
  bottom: -310px;
  left: -270px;
  background: #2772c9;
  box-shadow: 0 0 0 75px #3a89d030, 0 0 0 160px #5ca0e11c;
}
.auth-panel::after {
  width: 260px;
  height: 260px;
  top: -160px;
  left: -150px;
  background: #b3d9f744;
}
.auth-card {
  width: min(100%, 492px);
  background: #fff;

  border: 1px solid #e5edf7;
  border-radius: 19px;
  box-shadow: 0 22px 66px #0c39671e;
  padding: 43px 43px 38px;
  position: relative;
}
.notice-area:not(:has(#login_notices:not(:empty))) {
  display: none;
}
.notice-area {
  font-size: 14px;
  background: #fff3ee;
  color: #a93626;
  padding: 11px 13px;
  margin-bottom: 22px;
  border-radius: 9px;
  text-align: center;
}
.form-view[hidden] {
  display: none !important;
}
.form-heading {
  text-align: center;
  margin: 0 0 35px;
}
.eyebrow {
  color: #3576c3;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 12px;
}
.form-heading h1 {
  font-size: 35px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 12px;
  font-weight: 760;
  color: #0d2b68;
}
.form-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 9px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > svg {
  width: 19px;
  height: 19px;
  position: absolute;
  left: 16px;
  fill: none;
  stroke: #76879c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.input-wrap input {
  height: 53px;
  width: 100%;
  border: 1px solid #cedbeb;
  border-radius: 9px;
  padding: 0 50px 0 47px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.input-wrap input::placeholder {
  color: #96a2b2;
}
.input-wrap input:focus {
  border-color: #2471dd;
  box-shadow: 0 0 0 3px #2678e222;
}
.toggle-password {
  position: absolute;
  right: 9px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #718098;
  cursor: pointer;
  border-radius: 6px;
}
.toggle-password:hover,
.toggle-password:focus-visible {
  background: #eaf3ff;
  outline: none;
}
.toggle-password svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.toggle-password.is-visible {
  color: #155edb;
}
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 1px 0 0;
  font-size: 13px;
}
.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  color: #253f63;
}
.remember-option input {
  width: 17px;
  height: 17px;
  accent-color: #1662da;
  margin: 0;
  cursor: pointer;
}
.text-link,
.back-link {
  color: #155edb;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.text-link:hover,
.back-link:hover {
  text-decoration: underline;
}
.submit-btn {
  border: 0;
  width: 100%;
  height: 53px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(180deg, #236fe8, #0e56c8);
  font: 700 16px inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 14px #1359bd22;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 5px;
  transition: filter 0.15s, transform 0.15s;
}
.submit-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.submit-btn:focus-visible {
  outline: 3px solid #9bc6ff;
  outline-offset: 3px;
}
.submit-btn span {
  font-size: 22px;
  font-weight: 400;
}
.security-note {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  background: #f0f6fd;
  border-radius: 10px;
}
.security-note .shield {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0edff;
  color: #155edb;
  font-size: 30px;
}
.security-note strong {
  font-size: 13px;
}
.security-note p {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7e95;
  margin: 5px 0 0;
}
.back-link {
  text-align: center;
  font-size: 14px;
  margin-top: 2px;
}
.brand-panel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 32px 80px;
  overflow: hidden;
  background: radial-gradient(circle at 95% 15%, #fff 0, transparent 45%),
    linear-gradient(125deg, #f5fbff, #e8f4ff 65%, #ddefff);
}
.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -12%;
  width: 125%;
  height: 350px;
  background: #a9cffa72;
  border-radius: 50% 50% 0 0;
  transform: rotate(8deg);
}
.brand-panel::after {
  bottom: -275px;
  left: 9%;
  background: #80b8f15c;
  transform: rotate(-9deg);
}
.brand-inner {
  width: 100%;
  max-width: 680px;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: -65px;
}
.brand-logo {
  display: block;
  margin: 0 auto 12px;
  max-width: 460px;
}
.brand-logo img {
  display: block;
  max-width: 100%;
  max-height: 175px;
  object-fit: contain;
  margin: auto;
}
.brand-tagline {
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: #2b5685;
  margin: 7px auto 45px;
}
.feature-row {
  display: flex;
  justify-content: space-evenly;
  gap: 18px;
}
.feature {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #163d6d;
}
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 35px;
  font-weight: 500;
}
.feature-icon.blue {
  background: #dfedff;
  color: #1479c9;
}
.feature-icon.green {
  background: #e6f6e7;
  color: #53b25d;
}
.feature-icon.gold {
  background: #fff4dc;
  color: #eca832;
}
.brand-illustration {
  height: 165px;
  position: relative;
  margin-top: 48px;
  filter: drop-shadow(0 15px 16px #7596b228);
}
.books {
  position: absolute;
  bottom: 12px;
  left: 26%;
  width: 280px;
  transform: skew(-7deg);
}
.books i {
  display: block;
  height: 25px;
  border-radius: 4px;
  background: linear-gradient(#fff, #eef4fb);
  border-bottom: 5px solid #739cbe;
  border-left: 12px solid #7ea5c6;
  margin-top: 5px;
  box-shadow: 7px 7px 0 #8eb2c8;
}
.books i:nth-child(2) {
  margin-left: 12px;
  width: 90%;
  border-bottom-color: #b79a75;
}
.books i:nth-child(3) {
  margin-left: -12px;
  width: 103%;
  border-bottom-color: #557da6;
}
.planter {
  position: absolute;
  bottom: 5px;
  left: 67%;
}
.leaves {
  font-size: 92px;
  color: #72b98f;
  line-height: 1;
}
.pot {
  width: 65px;
  height: 65px;
  background: linear-gradient(110deg, #fff, #c9deef);
  border-radius: 5px 5px 20px 20px;
  margin: -8px auto 0;
}
#footer {
  min-height: 58px;
  padding: 16px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.1px;
  background: #15385d;
  color: #d3e0ee;
}
@media (max-width: 1050px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .auth-panel {
    padding: 32px 25px;
  }
  .auth-card {
    padding: 36px 28px;
  }
  .brand-logo {
    max-width: 320px;
  }
  .brand-tagline {
    font-size: 17px;
  }
  .brand-inner {
    margin-top: 0;
  }
  .feature-icon {
    height: 60px;
    width: 60px;
  }
}
@media (max-width: 760px) {
  .auth-layout {
    display: flex;
    flex-direction: column-reverse;
  }
  .brand-panel {
    min-height: 165px;
    padding: 28px 18px 22px;
  }
  .brand-inner {
    margin: 0;
  }
  .brand-logo {
    max-width: 230px;
  }
  .brand-logo img {
    max-height: 85px;
  }
  .brand-tagline {
    font-size: 13px;
    margin: 5px 0 0;
  }
  .feature-row,
  .brand-illustration {
    display: none;
  }
  .auth-panel {
    flex: 1;
    padding: 22px 16px 38px;
  }
  .auth-panel::before {
    width: 300px;
    height: 300px;
    bottom: -250px;
    left: -230px;
  }
  .auth-card {
    max-width: 480px;
    padding: 30px 24px 28px;
  }
  .form-heading {
    margin-bottom: 26px;
  }
  .form-heading h1 {
    font-size: 30px;
  }
  #footer {
    justify-content: center;
    text-align: center;
    padding: 17px 14px;
  }
  .footer-right {
    display: none;
  }
}
@media (max-width: 390px) {
  .auth-card {
    padding: 26px 18px;
  }
  .form-options {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .form-heading h1 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
