:root {
  --modern-bg: #f7f9fc;
  --modern-navy: #06294b;
  --modern-navy-2: #00407a;
  --modern-cyan: #57bfe3;
  --modern-ink: #172b4d;
  --modern-muted: #718096;
  --modern-line: #d9e2ec;
  --modern-accent: #007dcc;
}

* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  margin: 0;
}
body {
  background: var(--modern-bg);
  color: var(--modern-ink);
  font-family: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
}
.modern-auth span {
  float: none;
  width: auto;
}

.modern-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--modern-bg);
}
.modern-auth__brand {
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 48px 48px 332px;
  color: #45586e;
  border-right: 2px solid #d2dce8;
  background: #fff;
}
.modern-auth__curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(6, 41, 75, 0.1);
}
.modern-auth__brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 420px;
  margin: auto;
}
.modern-auth__logo {
  height: 100px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  object-fit: contain;
}
.modern-auth__brand h1 {
  float: none;
  width: auto;
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  color: var(--modern-navy);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
}
.modern-auth__brand p {
  float: none;
  width: auto;
  max-width: 360px;
  margin: 0;
  color: #45586e;
  font-size: 15px;
  line-height: 1.6;
}
.modern-auth__rule {
  position: relative;
  z-index: 2;
  display: block;
  width: 54px !important;
  height: 3px;
  margin: 18px 0;
  border-radius: 3px;
  background: var(--modern-cyan);
}

.modern-auth__main {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.modern-auth__card {
  width: 100%;
  max-width: 400px;
}
.modern-auth__logo-mobile {
  display: none;
  height: 40px;
  width: auto;
  margin: 0 auto 24px;
}
.modern-auth__card h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  color: var(--modern-ink);
  font-size: 26px;
  font-weight: 700;
}
.modern-auth__subtitle {
  margin: 6px 0 26px;
  color: #4a5568;
  font-size: 14.5px;
}
.modern-auth__inline-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #f0c3bf;
  border-radius: 6px;
  background: #fff5f4;
  color: #9b3f38;
  font-size: 13px;
  line-height: 1.4;
}
.modern-auth__inline-error[hidden] {
  display: none;
}
.modern-auth__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modern-auth__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.modern-auth__field label {
  color: var(--modern-ink);
  font-size: 13px;
  font-weight: 600;
}
.modern-auth__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.modern-auth__input-wrap input {
  float: none;
  position: relative;
  width: 100%;
  height: 44px;
  padding: 0 13px 0 40px;
  border: 1px solid var(--modern-line);
  border-radius: 4px;
  background: #fff;
  color: var(--modern-ink);
  font: inherit;
  font-size: 14px;
}
.modern-auth__input-wrap input:focus {
  outline: none;
  border-color: var(--modern-accent);
  box-shadow: 0 0 0 3px rgba(0, 125, 204, 0.15);
}
.modern-auth__input-icon {
  position: absolute;
  top: 35%;
  left: 13px;
  z-index: 1;
  display: flex;
  width: 18px !important;
  height: 18px;
  transform: translateY(-50%);
  color: var(--modern-muted);
  pointer-events: none;
}
.modern-auth__input-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.modern-auth__input-wrap--password input {
  padding-right: 42px;
}
.modern-auth__input-wrap button {
  position: absolute;
  top: 36%;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--modern-muted);
  cursor: pointer;
}
.modern-auth__input-wrap button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.modern-auth__input-wrap button #password-eye-slash {
  display: none;
}
.modern-auth__input-wrap button.is-visible #password-eye {
  display: none;
}
.modern-auth__input-wrap button.is-visible #password-eye-slash {
  display: block;
}
.modern-auth__input-wrap button:hover {
  color: var(--modern-accent);
}
.modern-auth__input-wrap button:focus-visible,
.modern-auth__forgot a:focus-visible,
.modern-auth__signup a:focus-visible,
.modern-auth__submit:focus-visible {
  outline: 3px solid rgba(0, 125, 204, 0.24);
  outline-offset: 2px;
}
.modern-auth__forgot {
  margin-top: -4px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
}
.modern-auth__forgot a,
.modern-auth__signup a {
  color: var(--modern-accent);
  text-decoration: none;
}
.modern-auth__forgot a:hover,
.modern-auth__signup a:hover {
  text-decoration: underline;
}
.modern-auth__submit {
  width: 100%;
  height: 48px;
  border: 1px solid var(--modern-navy);
  border-radius: 4px;
  background: var(--modern-navy);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: background .14s, border-color .14s, color .14s, box-shadow .14s;
}
.modern-auth__submit:hover {
  background: var(--modern-accent);
  border-color: var(--modern-accent);
  color: #fff;
}
.modern-auth__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}
.modern-auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--modern-muted);
  font-size: 12.5px;
}
.modern-auth__divider:before,
.modern-auth__divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--modern-line);
}
.modern-auth__google-slot {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.modern-auth__signup {
  margin: 22px 0 0;
  color: #4a5568;
  text-align: center;
  font-size: 13.5px;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .modern-auth {
    grid-template-columns: .9fr 1.1fr;
  }
  .modern-auth__brand {
    padding: 32px 28px 220px;
  }
  .modern-auth__brand-inner {
    gap: 28px;
  }
  .modern-auth__logo {
    height: 76px;
  }
  .modern-auth__brand h1 {
    font-size: 28px;
  }
  .modern-auth__brand p {
    font-size: 14px;
  }

  .modern-auth__main {
    padding: 32px 24px;
  }
  .modern-auth__card {
    max-width: 380px;
  }
}

@media (max-width: 767px) {
  .modern-auth {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }
  .modern-auth__brand {
    display: none;
  }
  .modern-auth__logo-mobile {
    display: block;
  }
  .modern-auth__main {
    align-content: center;
    padding: 32px 20px calc(40px + env(safe-area-inset-bottom));
  }
  .modern-auth__card {
    max-width: 440px;
  }
  .modern-auth__card h2 {
    font-size: 25px;
  }
  .modern-auth__input-wrap input {
    height: 48px;
  }
  .modern-auth__input-wrap button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .modern-auth__main {
    padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
  }
  .modern-auth__logo-mobile {
    margin-bottom: 20px;
  }
  .modern-auth__subtitle {
    margin-bottom: 22px;
    line-height: 1.45;
  }
  .modern-auth__form {
    gap: 16px;
  }
  .modern-auth__forgot {
    margin-top: -1px;
  }
}
