.auth-main-centered {
  width: min(760px, calc(100% - 1.2rem));
  margin: 5.2rem auto 1.8rem;
}

.auth-panel-single {
  padding: 1rem;
}

.auth-head-centered {
  text-align: center;
}

.auth-head-centered p {
  margin-left: auto;
  margin-right: auto;
}

.auth-grid-single {
  grid-template-columns: 1fr;
}

.auth-card-single {
  max-width: 560px;
  margin: 0 auto;
}

.auth-switch {
  margin-top: 0.7rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #475467;
  font-size: 0.82rem;
}

.auth-link-btn {
  min-height: 36px;
  padding: 0.42rem 0.86rem;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth-link-btn:hover,
.auth-link-btn:focus-visible {
  transform: translateY(-1px);
  border-color: #98a2b3;
  background: #f8fafc;
}

@media (max-width: 760px) {
  .auth-main-centered {
    margin-top: 4.2rem;
    width: calc(100% - 1rem);
  }

  .auth-panel-single {
    padding: 0.72rem;
  }
}

@media (max-width: 560px) {
  .auth-main-centered {
    margin-top: 6rem;
    width: calc(100% - 0.85rem);
  }

  .auth-card-single {
    max-width: 100%;
  }

  .auth-switch {
    flex-direction: column;
    gap: 0.34rem;
  }

  .auth-link-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .auth-main-centered {
    margin-top: 6.25rem;
    width: calc(100% - 0.72rem);
  }

  .auth-panel-single {
    padding: 0.58rem;
  }
}

body[data-auth-mode="login"] .auth-main-centered {
  width: min(1160px, calc(100% - 1.4rem));
  margin-top: clamp(5.8rem, 11vh, 7rem);
}

body[data-auth-mode="login"] .login-stage {
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #d6deea;
  background:
    radial-gradient(circle at left top, rgba(191, 219, 254, 0.5), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.96) 0%, rgba(247, 244, 238, 0.94) 52%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.1);
}

body[data-auth-mode="login"] .login-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 560px;
}

body[data-auth-mode="login"] .login-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  isolation: isolate;
}

body[data-auth-mode="login"] .login-copy::before {
  content: "";
  position: absolute;
  inset: auto auto 10% 10%;
  width: min(28vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0));
  filter: blur(8px);
  z-index: -1;
}

body[data-auth-mode="login"] .login-copy::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 12%;
  width: min(22vw, 190px);
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2));
  transform: rotate(14deg);
  z-index: -1;
}

body[data-auth-mode="login"] .login-brand-lockup {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

body[data-auth-mode="login"] .login-brand-lockup-image {
  display: block;
  width: clamp(124px, 16vw, 178px);
  max-height: 42px;
  object-fit: contain;
}

body[data-auth-mode="login"] .login-head {
  text-align: left;
  margin-bottom: 0;
}

body[data-auth-mode="login"] .login-head p {
  margin-left: 0;
  margin-right: 0;
  max-width: 26ch;
}

body[data-auth-mode="login"] .login-head .panel-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
}

body[data-auth-mode="login"] .login-head h1 {
  margin-top: 0.72rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

body[data-auth-mode="login"] .login-head > p:last-child {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

body[data-auth-mode="login"] .login-visual-card {
  width: min(100%, 360px);
  padding: 1rem;
  border-radius: 26px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.68rem;
}

body[data-auth-mode="login"] .login-visual-line {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(37, 99, 235, 0.4));
}

body[data-auth-mode="login"] .login-visual-line-strong {
  width: 78%;
  height: 14px;
}

body[data-auth-mode="login"] .login-visual-line-short {
  width: 52%;
}

body[data-auth-mode="login"] .login-card {
  margin: 0;
  max-width: none;
  border: 0;
  border-left: 1px solid rgba(214, 222, 234, 0.9);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98));
  box-shadow: none;
}

body[data-auth-mode="login"] .login-card-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

body[data-auth-mode="login"] .login-form-stack {
  gap: 0.9rem;
}

body[data-auth-mode="login"] .field-label {
  gap: 0.46rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

body[data-auth-mode="login"] .field-label input {
  min-height: 54px;
  border-radius: 18px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

body[data-auth-mode="login"] .login-form-stack .btn-primary {
  min-height: 56px;
  margin-top: 0.2rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
}

body[data-auth-mode="login"] .login-switch {
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

body[data-auth-mode="login"] .login-feedback {
  margin-top: 0.85rem;
  min-height: 1.2rem;
}

@media (max-width: 980px) {
  body[data-auth-mode="login"] .auth-main-centered {
    width: min(960px, calc(100% - 1rem));
  }

  body[data-auth-mode="login"] .login-stage-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-auth-mode="login"] .login-card {
    border-left: 0;
    border-top: 1px solid rgba(214, 222, 234, 0.9);
  }

  body[data-auth-mode="login"] .login-copy {
    padding-bottom: 1.4rem;
  }
}

@media (max-width: 760px) {
  body[data-auth-mode="login"] .auth-main-centered {
    width: calc(100% - 0.9rem);
    margin-top: 5rem;
  }

  body[data-auth-mode="login"] .login-stage {
    border-radius: 24px;
  }

  body[data-auth-mode="login"] .login-copy,
  body[data-auth-mode="login"] .login-card-shell {
    padding: 1.2rem;
  }

  body[data-auth-mode="login"] .login-head {
    text-align: center;
  }

  body[data-auth-mode="login"] .login-head p {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-auth-mode="login"] .login-brand-lockup,
  body[data-auth-mode="login"] .login-visual-card {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-auth-mode="login"] .login-head h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  body[data-auth-mode="login"] .login-switch {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  body[data-auth-mode="login"] .auth-main-centered {
    width: calc(100% - 0.72rem);
    margin-top: 6.1rem;
  }

  body[data-auth-mode="login"] .login-stage {
    border-radius: 20px;
  }

  body[data-auth-mode="login"] .login-copy {
    gap: 0.95rem;
  }

  body[data-auth-mode="login"] .login-brand-lockup {
    padding: 0.72rem 0.84rem;
  }

  body[data-auth-mode="login"] .login-brand-lockup-image {
    width: 132px;
  }

  body[data-auth-mode="login"] .field-label input {
    min-height: 50px;
    border-radius: 16px;
  }

  body[data-auth-mode="login"] .login-form-stack .btn-primary {
    min-height: 52px;
    border-radius: 16px;
  }
}

body[data-auth-mode="register"] .auth-main-centered {
  width: min(1180px, calc(100% - 1.4rem));
  margin-top: clamp(5.8rem, 11vh, 7rem);
}

body[data-auth-mode="register"] .register-stage {
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #d6deea;
  background:
    radial-gradient(circle at 12% 14%, rgba(219, 234, 254, 0.58), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 238, 0.96) 58%, rgba(239, 246, 255, 0.9) 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.1);
}

body[data-auth-mode="register"] .register-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  min-height: 620px;
}

body[data-auth-mode="register"] .register-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  isolation: isolate;
}

body[data-auth-mode="register"] .register-copy::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 12%;
  width: min(26vw, 240px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.22), rgba(191, 219, 254, 0));
  transform: rotate(-12deg);
  z-index: -1;
}

body[data-auth-mode="register"] .register-copy::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 10%;
  width: min(20vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.18), rgba(29, 78, 216, 0));
  filter: blur(10px);
  z-index: -1;
}

body[data-auth-mode="register"] .register-brand-lockup {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

body[data-auth-mode="register"] .register-brand-lockup-image {
  display: block;
  width: clamp(124px, 16vw, 178px);
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

body[data-auth-mode="register"] .register-head {
  text-align: left;
  margin-bottom: 0;
}

body[data-auth-mode="register"] .register-head p {
  margin-left: 0;
  margin-right: 0;
  max-width: 30ch;
}

body[data-auth-mode="register"] .register-head .panel-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
}

body[data-auth-mode="register"] .register-head h1 {
  margin-top: 0.72rem;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

body[data-auth-mode="register"] .register-head > p:last-child {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.45vw, 1.1rem);
  line-height: 1.7;
}

body[data-auth-mode="register"] .register-visual-card {
  width: min(100%, 360px);
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 0.75rem;
}

body[data-auth-mode="register"] .register-visual-pill {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(29, 78, 216, 0.42));
}

body[data-auth-mode="register"] .register-visual-pill-strong {
  width: 72%;
  height: 18px;
}

body[data-auth-mode="register"] .register-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

body[data-auth-mode="register"] .register-visual-grid span {
  display: block;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.72);
  background: linear-gradient(160deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.68));
}

body[data-auth-mode="register"] .register-card {
  margin: 0;
  max-width: none;
  border: 0;
  border-left: 1px solid rgba(214, 222, 234, 0.9);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.99));
  box-shadow: none;
}

body[data-auth-mode="register"] .register-card-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

body[data-auth-mode="register"] .register-form-stack {
  gap: 0.8rem;
}

body[data-auth-mode="register"] .register-form-stack .field-label {
  gap: 0.42rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
}

body[data-auth-mode="register"] .register-form-stack .field-label input {
  min-height: 52px;
  border-radius: 17px;
  padding: 0.78rem 0.96rem;
  font-size: 0.98rem;
}

body[data-auth-mode="register"] .register-form-stack .btn-primary {
  min-height: 54px;
  margin-top: 0.26rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
}

body[data-auth-mode="register"] .register-switch {
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

body[data-auth-mode="register"] .register-feedback {
  margin-top: 0.82rem;
  min-height: 1.2rem;
}

@media (max-width: 980px) {
  body[data-auth-mode="register"] .auth-main-centered {
    width: min(960px, calc(100% - 1rem));
  }

  body[data-auth-mode="register"] .register-stage-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-auth-mode="register"] .register-card {
    border-left: 0;
    border-top: 1px solid rgba(214, 222, 234, 0.9);
  }
}

@media (max-width: 760px) {
  body[data-auth-mode="register"] .auth-main-centered {
    width: calc(100% - 0.9rem);
    margin-top: 5rem;
  }

  body[data-auth-mode="register"] .register-stage {
    border-radius: 24px;
  }

  body[data-auth-mode="register"] .register-copy,
  body[data-auth-mode="register"] .register-card-shell {
    padding: 1.2rem;
  }

  body[data-auth-mode="register"] .register-head {
    text-align: center;
  }

  body[data-auth-mode="register"] .register-head p {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-auth-mode="register"] .register-brand-lockup,
  body[data-auth-mode="register"] .register-visual-card {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-auth-mode="register"] .register-head h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  body[data-auth-mode="register"] .register-switch {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  body[data-auth-mode="register"] .auth-main-centered {
    width: calc(100% - 0.72rem);
    margin-top: 6.1rem;
  }

  body[data-auth-mode="register"] .register-stage {
    border-radius: 20px;
  }

  body[data-auth-mode="register"] .register-copy {
    gap: 0.95rem;
  }

  body[data-auth-mode="register"] .register-brand-lockup {
    padding: 0.72rem 0.84rem;
  }

  body[data-auth-mode="register"] .register-brand-lockup-image {
    width: 132px;
  }

  body[data-auth-mode="register"] .register-visual-grid {
    gap: 0.5rem;
  }

  body[data-auth-mode="register"] .register-visual-grid span {
    min-height: 46px;
    border-radius: 14px;
  }

  body[data-auth-mode="register"] .register-form-stack .field-label input {
    min-height: 48px;
    border-radius: 15px;
  }

  body[data-auth-mode="register"] .register-form-stack .btn-primary {
    min-height: 50px;
    border-radius: 16px;
  }
}
