.login-body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--page);
}

.login-shell {
  display: grid;
  width: calc(100% - 32px);
  height: calc(100vh - 32px);
  height: calc(100svh - 32px);
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgb(24 24 27 / 0.08);
}

.conference-poster {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #212631;
}

.conference-poster img {
  display: block;
  width: 100%;
  height: 100%;
  /* A 1600 x 2000 (4:5) source is recommended for conference artwork. */
  object-fit: cover;
  object-position: center;
}

.conference-poster-copy {
  position: absolute;
  z-index: 1;
  top: clamp(84px, 18%, 162px);
  left: clamp(44px, 8.5%, 92px);
  width: min(78%, 610px);
  color: #ffffff;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.42);
}

.conference-poster-copy::before {
  position: absolute;
  z-index: -1;
  inset: -30px -38px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 22% 42%, rgb(0 0 0 / 0.28), rgb(0 0 0 / 0.08) 48%, transparent 76%);
  content: "";
  pointer-events: none;
}

.conference-poster-copy p {
  margin: 0;
}

.conference-poster-kicker {
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.conference-poster-copy h2 {
  max-width: 610px;
  margin: clamp(9px, 1.4vh, 14px) 0 4px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 7.2vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.conference-poster-subtitle {
  font-size: clamp(16px, 1.45vw, 23px);
  font-weight: 650;
  line-height: 1.35;
}

.conference-poster-theme {
  max-width: 500px;
  margin-top: clamp(10px, 1.7vh, 16px) !important;
  color: rgb(255 255 255 / 0.82);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.65;
}

.conference-poster-date {
  margin-top: clamp(11px, 1.8vh, 17px) !important;
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.login-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
}

.login-content {
  width: min(100% - 72px, 470px);
  margin: auto;
  padding-block: 36px 28px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
}

.login-brand-logo {
  display: block;
  width: 132px;
  height: auto;
}

.login-heading-group {
  margin-top: 32px;
  margin-bottom: 24px;
}

.login-content > .login-heading-group:first-child {
  margin-top: 0;
}

.login-heading-group .eyebrow {
  max-width: 420px;
  margin-bottom: 9px;
  line-height: 1.5;
}

.login-heading-group h1 {
  margin-bottom: 11px;
  font-size: clamp(31px, 3.2vw, 42px);
}

.login-heading-group > p:last-child {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d4d4d8;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
}

.login-field input::placeholder {
  color: var(--subtle);
}

.login-field input:focus-visible {
  border-color: var(--primary-action);
  outline: 3px solid rgb(3 98 76 / 0.22);
  outline-offset: 1px;
}

.password-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.password-label-row a {
  color: var(--primary-action);
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.sign-in-button {
  width: 100%;
  min-height: 46px;
  margin-top: 3px;
}

.login-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.login-status.is-error {
  color: #a12b2b;
}

.login-status.is-success {
  color: #176b45;
}

.login-shell--message {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

.public-submission-entry {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.public-submission-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.public-submission-entry strong {
  color: var(--text);
}

.submit-paper-link {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.footer-logo {
  display: block;
  width: 64px;
  height: auto;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .login-shell {
    height: auto;
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
    grid-template-columns: 1fr;
    margin: 24px auto;
  }

  .conference-poster {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .conference-poster img {
    position: absolute;
    inset: 0;
  }

  .login-content {
    width: min(100% - 64px, 560px);
    padding-block: 48px;
  }

  .login-heading-group {
    margin-top: 42px;
  }
}

@media (min-width: 901px) and (min-height: 650px) {
  .login-body {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    padding: 16px;
  }

  .login-shell {
    width: 100%;
    height: 100%;
    margin: 0;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .login-content {
    padding-block: 24px 18px;
  }

  .login-heading-group {
    margin-top: 22px;
    margin-bottom: 18px;
  }

  .login-heading-group h1 {
    font-size: clamp(29px, 3vw, 38px);
  }

  .login-form {
    gap: 12px;
  }

  .public-submission-entry {
    margin-top: 12px;
    padding-top: 10px;
  }

  .login-footer {
    padding-block: 12px;
  }
}

@media (max-width: 520px) {
  .login-shell {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .conference-poster {
    aspect-ratio: 4 / 3;
  }

  .conference-poster-copy {
    top: 36px;
    left: 28px;
    width: min(calc(100% - 56px), 430px);
  }

  .conference-poster-copy h2 {
    margin-top: 9px;
    font-size: clamp(42px, 12vw, 64px);
  }

  .conference-poster-theme,
  .conference-poster-date {
    margin-top: 9px !important;
  }

  .login-content {
    width: calc(100% - 40px);
    padding-block: 38px 44px;
  }

  .login-heading-group {
    margin-top: 34px;
    margin-bottom: 28px;
  }

  .login-heading-group h1 {
    font-size: 31px;
  }

  .login-footer {
    padding: 18px 20px;
  }
}
