.owner-auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 107, 214, .13), transparent 28rem),
    linear-gradient(145deg, #f6f8fc 0%, #eef2f8 100%);
  color: #18213b;
}

.owner-auth-body [hidden] {
  display: none !important;
}

.auth-topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-topbar .platform-brand {
  color: #18213b;
}

.auth-return-link {
  color: #58647c;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}

.auth-return-link:hover,
.auth-return-link:focus-visible {
  color: #18213b;
}

.owner-auth-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 36px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .82fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.auth-story {
  max-width: 620px;
  padding: 28px 0;
}

.auth-story-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 18px;
  background: #18213b;
  box-shadow: 0 16px 34px rgba(24, 33, 59, .18);
}

.auth-story-mark img {
  width: 36px;
  height: 36px;
}

.auth-eyebrow {
  margin: 0 0 14px;
  color: #5268b8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 600px;
  margin: 0;
  color: #18213b;
  font-size: clamp(2.75rem, 5vw, 4.8rem);
  line-height: .99;
  letter-spacing: -.055em;
}

.auth-story-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: #5f6a80;
  font-size: 1.08rem;
  line-height: 1.75;
}

.auth-value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.auth-value-list li {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(170, 181, 204, .56);
  border-radius: 20px;
  background: rgba(255, 255, 255, .56);
  backdrop-filter: blur(8px);
}

.auth-value-list strong,
.auth-value-list span {
  display: block;
}

.auth-value-list strong {
  margin-bottom: 7px;
  color: #202b48;
  font-size: .95rem;
}

.auth-value-list span {
  color: #68738a;
  font-size: .84rem;
  line-height: 1.5;
}

.auth-card-wrap {
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(211, 218, 231, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(24, 33, 59, .14);
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #18213b, #526fd2 58%, #8da5f4);
}

.auth-card-header {
  margin-bottom: 26px;
}

.auth-card-header h2 {
  margin: 0;
  color: #18213b;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.auth-card-header p {
  margin: 10px 0 0;
  color: #69748a;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 26px;
  padding: 4px;
  border-radius: 14px;
  background: #f0f3f8;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #667188;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: #fff;
  color: #18213b;
  box-shadow: 0 3px 12px rgba(24, 33, 59, .08);
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #293550;
  font-size: .86rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  border: 1px solid #cbd3e1;
  border-radius: 13px;
  padding: 12px 14px;
  background: #fff;
  color: #18213b;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

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

.auth-form input:focus {
  outline: 0;
  border-color: #5673d7;
  box-shadow: 0 0 0 4px rgba(86, 115, 215, .13);
}

.auth-password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: -2px;
}

.auth-password-row label {
  flex: 1;
}

.auth-text-button {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4661bd;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-text-button:hover,
.auth-text-button:focus-visible {
  color: #253f9e;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 13px;
  background: #18213b;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(24, 33, 59, .15);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24, 33, 59, .2);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .62;
}

.auth-mode-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #53617b;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-mode-back::before {
  content: '←';
}

.owner-status {
  min-height: 0;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f7fb;
  color: #5d687e;
  font-size: .88rem;
  line-height: 1.5;
}

.owner-status:empty {
  display: none;
}

.owner-status.is-error {
  background: #fff1f1;
  color: #9d2c2c;
}

.owner-status.is-success {
  background: #ecf8f1;
  color: #17683e;
}

.auth-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  color: #8a93a5;
  font-size: .78rem;
}

.auth-card-footer a {
  color: #667188;
  font-weight: 700;
  text-decoration: none;
}

.auth-card-footer a:hover,
.auth-card-footer a:focus-visible {
  color: #18213b;
  text-decoration: underline;
}

.auth-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-secure-note::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3aa36b;
  box-shadow: 0 0 0 3px rgba(58, 163, 107, .12);
}

@media (max-width: 940px) {
  .owner-auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
    padding-top: 22px;
  }

  .auth-story {
    max-width: 720px;
    padding: 10px 0 0;
  }

  .auth-story-mark,
  .auth-story-copy,
  .auth-value-list {
    display: none;
  }

  .auth-story h1 {
    max-width: 650px;
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .auth-card-wrap {
    max-width: 620px;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .auth-topbar,
  .owner-auth-shell {
    width: min(100% - 28px, 1180px);
  }

  .auth-topbar {
    min-height: 70px;
  }

  .auth-return-link {
    font-size: .82rem;
  }

  .owner-auth-shell {
    padding: 12px 0 38px;
  }

  .auth-story {
    display: none;
  }

  .auth-card {
    padding: 26px 20px;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(24, 33, 59, .12);
  }

  .auth-password-row {
    display: grid;
    gap: 8px;
  }

  .auth-password-row .auth-text-button {
    justify-self: start;
  }

  .auth-card-footer {
    flex-wrap: wrap;
  }
}
