.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 12% 40%, rgba(143, 230, 239, 0.18), transparent 34rem),
    #f7f9fc;
  color: #080d1d;
}

.auth-header,
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.auth-header {
  min-height: 84px;
}

.auth-header .navbar-brand-medium {
  margin: 0;
}

.auth-header p {
  margin: 0;
  color: #657188;
  font-size: 0.875rem;
}

.auth-header p a,
.auth-legal a,
.auth-footer a {
  color: #336fe8;
  font-weight: 700;
}

.auth-header p a:hover,
.auth-legal a:hover,
.auth-footer a:hover {
  color: #245cc5;
}

.auth-main {
  display: grid;
  min-height: calc(100vh - 144px);
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.83fr);
  width: min(980px, 100%);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(34, 57, 91, 0.1);
}

.auth-form-panel {
  align-self: center;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 3.25rem 3.5rem;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #b8e9f8;
  border-radius: 999px;
  background: #e8f9ff;
  color: #087ca9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-form-panel h1 {
  margin: 1.35rem 0 0.55rem;
  font-size: clamp(2.2rem, 3.6vw, 2.85rem);
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.auth-intro {
  margin: 0;
  color: #657188;
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-socials {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.auth-social-button {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
  color: #20283a;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.auth-social-button:hover {
  transform: translateY(-1px);
  border-color: #9cb8ee;
  background: #f9fbff;
}

.auth-social-button i {
  font-size: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  color: #8993a5;
  font-size: 0.72rem;
  white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: #e8ebf1;
  content: "";
}

.auth-form {
  display: grid;
  gap: 0.55rem;
}

.auth-form label {
  margin-top: 0.2rem;
  color: #26334b;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 45px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #080d1d;
  font: inherit;
  font-size: 0.85rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.auth-form input::placeholder {
  color: #a0a9b8;
}

.auth-form input:focus {
  border-color: #6b95ed;
  box-shadow: 0 0 0 3px rgba(66, 124, 240, 0.12);
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-text-button {
  padding: 0;
  border: 0;
  background: none;
  color: #336fe8;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 2.8rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  display: grid;
  width: 1.6rem;
  height: 1.8rem;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #7d8798;
  cursor: pointer;
}

.auth-submit {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: #427cf0;
  box-shadow: 0 10px 22px rgba(66, 124, 240, 0.2);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.auth-submit:hover {
  transform: translateY(-1px);
  background: #2e63d3;
  box-shadow: 0 13px 26px rgba(66, 124, 240, 0.28);
}

.auth-status {
  min-height: 1.2rem;
  margin: 0.1rem 0 0;
  color: #a23a36;
  font-size: 0.76rem;
  line-height: 1.5;
}

.auth-legal {
  margin: 0.8rem 0 0;
  color: #8993a5;
  font-size: 0.69rem;
  line-height: 1.6;
}

.auth-legal a {
  font-weight: 600;
}

.auth-art-panel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3rem;
  background:
    radial-gradient(circle at 85% 13%, rgba(255, 255, 255, 0.75) 0 5px, transparent 6px),
    radial-gradient(circle at 14% 82%, rgba(255, 255, 255, 0.6) 0 4px, transparent 5px),
    linear-gradient(145deg, #dff8ff 0%, #e8efff 56%, #f8edc5 100%);
}

.auth-art-panel::before,
.auth-art-panel::after {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(66, 124, 240, 0.14);
  border-radius: 50%;
  content: "";
}

.auth-art-panel::before {
  top: -105px;
  right: -80px;
}

.auth-art-panel::after {
  right: -42px;
  bottom: -180px;
  width: 340px;
  height: 340px;
}

.auth-art-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 1rem;
}

.auth-art-kicker {
  color: #087ca9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.auth-art-content h2 {
  max-width: 310px;
  margin: 1rem 0 0.8rem;
  color: #101526;
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  letter-spacing: -0.07em;
  line-height: 0.99;
}

.auth-art-content > p {
  max-width: 290px;
  margin: 0;
  color: #657188;
  font-size: 0.96rem;
  line-height: 1.65;
}

.auth-story-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 4.5rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(40, 60, 90, 0.08);
  backdrop-filter: blur(8px);
}

.auth-story-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 12px;
  background: #e3f7ff;
  color: #1484b2;
  font-size: 1.15rem;
}

.auth-story-card > div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.auth-story-card > div span {
  color: #1484b2;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-story-card strong {
  color: #101526;
  font-size: 0.83rem;
  letter-spacing: -0.02em;
}

.auth-story-arrow {
  margin-left: auto;
  color: #427cf0;
}

.auth-art-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
  color: #657188;
  font-size: 0.7rem;
  font-weight: 600;
}

.auth-art-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24b879;
  box-shadow: 0 0 0 4px rgba(36, 184, 121, 0.14);
}

.auth-art-spark {
  position: absolute;
  color: #427cf0;
}

.auth-art-spark-one {
  top: 17%;
  right: 16%;
  font-size: 1.5rem;
}

.auth-art-spark-two {
  right: 12%;
  bottom: 24%;
  color: #fa7e9c;
  font-size: 2rem;
}

.auth-footer {
  min-height: 60px;
  color: #8993a5;
  font-size: 0.75rem;
}

.auth-footer a {
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .auth-main {
    min-height: 0;
    padding: 0.75rem 1rem 1.5rem;
  }

  .auth-card {
    grid-template-columns: 1fr;
    max-width: 500px;
    min-height: 0;
  }

  .auth-form-panel {
    padding: 2.5rem clamp(1.35rem, 7vw, 3rem);
  }

  .auth-art-panel {
    min-height: 260px;
    padding: 2rem clamp(1.35rem, 7vw, 3rem);
  }

  .auth-art-content {
    padding-top: 0;
  }

  .auth-art-content h2 {
    max-width: 340px;
    font-size: 2.45rem;
  }

  .auth-story-card {
    margin-top: 1.5rem;
  }

  .auth-art-spark-one {
    top: 13%;
    right: 12%;
  }

  .auth-art-spark-two {
    bottom: 14%;
  }
}

@media (max-width: 420px) {
  .auth-header,
  .auth-footer {
    width: calc(100% - 2rem);
  }

  .auth-header {
    min-height: 72px;
  }

  .auth-header .navbar-brand-medium {
    font-size: 1.5rem;
  }

  .auth-header p {
    font-size: 0.76rem;
  }

  .auth-footer span {
    display: none;
  }
}
