/* Keep the new consent readable until tablet and phone layouts are approved. */
@media (max-width: 1100px) {
  .register-page .register-description { margin: 0 0 18px; color: #d5e2f2; font-size: 14px; line-height: 1.45; }
  .register-page .card-footer { gap: 4px; margin-top: 20px; }
  .register-page .marketing-choice { display: flex; align-items: flex-start; gap: 10px; color: #c3d4e9; font-size: 12px; line-height: 1.45; cursor: pointer; }
  .register-page .marketing-choice input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; appearance: none; display: grid; place-content: center; border: 1px solid #6999c9; border-radius: 3px; background: rgba(3, 19, 39, .42); cursor: pointer; }
  .register-page .marketing-choice input::before { content: ''; width: 10px; height: 10px; transform: scale(0); background: #fff; clip-path: polygon(8% 49%, 36% 77%, 92% 19%, 100% 29%, 36% 92%, 0 58%); }
  .register-page .marketing-choice input:checked { border-color: #128dff; background: #128dff; }
  .register-page .marketing-choice input:checked::before { transform: scale(1); }
  .register-page .marketing-choice a { color: #8ac9ff; text-decoration: underline; text-underline-offset: 2px; }
  .register-page .marketing-choice input:focus-visible,
  .register-page .marketing-choice a:focus-visible { outline: 2px solid #54b9ff; outline-offset: 3px; }
}

.register-page .marketing-document-link { display: block; }

@media (max-width: 600px) {
  .register-page .auth-intro { width: min(100%, 304px); text-align: left; }
  .register-page .brand { margin-inline: auto; }
}

/* Approved desktop registration proposal 01. */
@media (min-width: 1101px) {
  .register-page {
    background:
      linear-gradient(180deg, rgba(5, 15, 33, .52) 0%, rgba(5, 15, 33, .36) 61%, rgba(5, 15, 33, .17) 100%),
      url('workspace-mountains.png') center bottom / cover no-repeat;
  }

  .register-page .auth-shell {
    width: min(100%, 1432px);
    padding: 60px clamp(36px, 4vw, 60px) 82px;
    grid-template-columns: minmax(0, 1fr) 442px;
    gap: clamp(70px, 7vw, 118px);
  }

  .register-page .auth-intro {
    align-self: stretch;
    padding-top: clamp(52px, 8vh, 82px);
  }

  .register-page .brand { gap: 16px; }
  .register-page .brand img { width: 112px; height: 112px; }
  .register-page .brand span {
    font-size: clamp(44px, 3.45vw, 49px);
    font-weight: 660;
    letter-spacing: .065em;
  }

  .register-page .hero {
    margin-top: clamp(82px, 10vh, 102px);
    font-size: clamp(47px, 3.7vw, 58px);
    font-weight: 580;
    line-height: 1.17;
  }

  .register-page .auth-card {
    align-self: center;
    padding: 35px 36px 34px;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(17, 42, 72, .96), rgba(8, 28, 51, .97));
    box-shadow: 0 24px 70px rgba(0, 7, 22, .2);
  }

  .register-page .auth-card h1 { margin-bottom: 14px; font-size: 27px; }
  .register-page .register-description {
    margin: 0 0 18px;
    color: #d5e2f2;
    font-size: 14px;
    line-height: 1.45;
  }
  .register-page .auth-form { gap: 14px; }
  .register-page .form-field { gap: 7px; }
  .register-page .form-field label { font-size: 14px; }
  .register-page .form-field input { height: 46px; font-size: 15px; }
  .register-page .marketing-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #c3d4e9;
    font-size: 13px;
    line-height: 1.42;
    cursor: pointer;
  }
  .register-page .marketing-choice input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: none;
    appearance: none;
    display: grid;
    place-content: center;
    border: 1px solid #6999c9;
    border-radius: 3px;
    background: rgba(3, 19, 39, .42);
    cursor: pointer;
  }
  .register-page .marketing-choice input::before {
    content: '';
    width: 10px;
    height: 10px;
    transform: scale(0);
    background: #fff;
    clip-path: polygon(8% 49%, 36% 77%, 92% 19%, 100% 29%, 36% 92%, 0 58%);
  }
  .register-page .marketing-choice input:checked { border-color: #128dff; background: #128dff; }
  .register-page .marketing-choice input:checked::before { transform: scale(1); }
  .register-page .marketing-choice input:focus-visible {
    outline: 2px solid #54b9ff;
    outline-offset: 3px;
  }
  .register-page .marketing-choice a,
  .register-page .registration-legal a { color: #8ac9ff; text-decoration: underline; text-underline-offset: 2px; }
  .register-page .marketing-choice a:focus-visible,
  .register-page .registration-legal a:focus-visible,
  .register-page .footer-link:focus-visible { outline: 2px solid #54b9ff; outline-offset: 3px; }
  .register-page .primary-button { min-height: 46px; font-size: 16px; cursor: pointer; }
  .register-page .registration-legal {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
  }
  .register-page .card-footer { gap: 4px; margin-top: 22px; font-size: 13px; }
}

/* Keep the approved card bounds while its form gives way to the result. */
.register-page .auth-card { display: grid; }
.register-page .card-pane { grid-area: 1 / 1; min-width: 0; }
.register-page #form-state { transition: opacity 180ms ease, visibility 0s linear 180ms; }
.register-page #form-state.is-concealed { opacity: 0; visibility: hidden; }
.register-page #sent-state[hidden] { display: none; }
.register-page #sent-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 220ms ease 70ms;
}
.register-page #sent-state.is-visible { opacity: 1; }

@media (min-width: 1101px) {
  .register-page .success-state { padding-top: 18px; }
  .register-page .success-symbol {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(90, 174, 255, .42);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(21, 137, 255, .26), rgba(12, 82, 163, .12));
    color: #75bcff;
  }
  .register-page .success-symbol svg { width: 28px; height: 28px; }
  .register-page .success-state h1 { margin: 26px 0 16px; }
  .register-page .success-primary {
    margin: 0;
    color: #f0f6ff;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.5;
  }
  .register-page .success-hint {
    width: 100%;
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(122, 170, 219, .24);
    color: #bfd0e5;
    font-size: 14px;
    line-height: 1.5;
  }
  .register-page .success-other {
    margin-top: auto;
    padding-top: 22px;
    color: #8ac9ff;
    font-size: 14px;
    font-weight: 550;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .register-page .success-other:focus-visible { outline: 2px solid #54b9ff; outline-offset: 3px; }
  .register-page .success-state h1:focus { outline: none; }
}

@media (max-width: 1100px) {
  .register-page .auth-card { transition: height 280ms ease; }
  .register-page .success-state { padding-top: 8px; }
  .register-page .success-symbol { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(90, 174, 255, .42); border-radius: 13px; background: rgba(21, 137, 255, .16); color: #75bcff; }
  .register-page .success-symbol svg { width: 27px; height: 27px; }
  .register-page .success-state h1 { margin: 23px 0 15px; }
  .register-page .success-primary { margin: 0; color: #f0f6ff; font-size: 15px; line-height: 1.5; }
  .register-page .success-hint { width: 100%; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(122, 170, 219, .24); color: #bfd0e5; font-size: 14px; line-height: 1.5; }
  .register-page .success-other { margin-top: 23px; color: #8ac9ff; font-size: 14px; font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
  .register-page .success-other:focus-visible { outline: 2px solid #54b9ff; outline-offset: 3px; }
  .register-page .success-state h1:focus { outline: none; }
}

@media (max-width: 600px) {
  .register-page .success-state { padding-top: 3px; }
  .register-page .success-symbol { width: 44px; height: 44px; border-radius: 11px; }
  .register-page .success-symbol svg { width: 24px; height: 24px; }
  .register-page .success-state h1 { margin: 19px 0 14px; }
  .register-page .success-primary { font-size: 14px; line-height: 1.48; }
  .register-page .success-hint { margin-top: 22px; padding-top: 16px; font-size: 12px; }
  .register-page .success-other { margin-top: 20px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .register-page .auth-card,
  .register-page #form-state,
  .register-page #sent-state { transition: none; }
}
