@layer pages {
  .theme-2027.template-auth-2027 .auth-main {
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 280px 24px 80px;
  }
  .auth-skyline {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
  }
  .auth-skyline img {
    display: block;
    width: 100%;
    height: auto;
  }
  .auth-content {
    max-width: 396px;
    margin-inline: auto;
    color: #fafafa;
    font: 300 16px/1.4 var(--home-font);
    letter-spacing: 0.05em;
  }
  .auth-content > h1,
  .auth-hero h1 {
    margin: 0 0 24px;
    font: 600 48px/normal var(--home-font);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
  .auth-content > p {
    text-align: center;
  }
  /* Other allauth entrance pages retain their existing single-column layout. */
  .auth-content form {
    width: 100%;
    margin: 32px 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .theme-2027.template-auth-2027 .auth-main--split {
    padding: 0;
  }
  .auth-hero {
    min-height: 494px;
    padding: 318px 24px 24px;
    color: #fafafa;
  }
  .auth-hero-content {
    max-width: 452px;
    margin-inline: auto;
    text-align: center;
    font: 300 16px/1.4 var(--home-font);
    letter-spacing: 0.05em;
  }
  .auth-hero-content p {
    margin: 0;
    font: inherit;
  }
  .auth-hero-content a {
    color: inherit;
  }
  .auth-main--split .auth-content {
    width: calc(100% - 48px);
    max-width: 608px;
    padding: 24px 0 120px;
  }
  .auth-main--split .auth-form {
    margin-top: 0;
  }
  .auth-content .auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .auth-content .auth-form > * {
    margin: 0;
  }
  .auth-field label {
    display: block;
    margin: 0 0 12px;
    color: #fafafa;
    font: 300 16px/1.4 var(--home-font);
    letter-spacing: 0.05em;
  }
  .auth-content input:not([type='hidden'], [type='checkbox'], [type='radio'], [type='submit']),
  .auth-content select,
  .auth-content textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    height: 46px;
    border: 1px solid #b5b8bc;
    border-radius: 40px;
    background: transparent;
    color: #fafafa;
    font: 300 16px/1.4 var(--home-font);
    letter-spacing: 0.05em;
    padding: 10px 24px;
  }
  .auth-content textarea {
    height: auto;
  }
  .auth-content input::placeholder {
    color: #73767b;
    opacity: 1;
  }
  .auth-choice {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .auth-choice label {
    display: inline;
    margin: 0;
  }
  .auth-content .auth-field-help {
    margin: 12px 24px 0;
    color: #b5b8bc;
    font: 300 14px/1.4 var(--home-font);
    letter-spacing: 0.05em;
    overflow-wrap: anywhere;
  }
  .auth-field-help ul {
    margin: 0;
    padding-left: 18px;
  }
  .auth-field-help li {
    margin: 0;
  }
  .auth-field-help a {
    color: #fafafa;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .auth-field-help :is(b, strong) {
    font-weight: 500;
  }
  .auth-content .auth-field-errors,
  .auth-content .auth-field-status {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    padding: 0 0 0 28px;
    background: transparent;
    border: 0;
    color: #ab3539;
    font: 300 14px/1.5 var(--home-font);
    letter-spacing: 0.05em;
  }
  .auth-content .auth-field-status[hidden] {
    display: none;
  }
  .auth-field-errors::before,
  .auth-field[data-state='error'] .auth-field-status::before {
    content: '!';
    flex: none;
  }
  .auth-field[data-state='success'] .auth-field-status::before {
    content: '✓';
    flex: none;
  }
  .auth-content .auth-field-errors ul,
  .auth-content .auth-field-errors li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    list-style: none;
  }
  .auth-content input:not([type='checkbox'], [type='radio']):focus {
    height: 48px;
  }
  .auth-content input:focus,
  .auth-field[data-state='loading'] input {
    color: #fafafa;
    border-color: var(--home-cream);
    background: #ffffff1a;
  }
  .auth-content input:focus-visible,
  .auth-content button:focus-visible {
    outline: 2px solid var(--home-gold);
    outline-offset: 3px;
  }
  .auth-content .auth-field-invalid input,
  .auth-field[data-state='error'] input {
    color: #ab3539;
    border-color: var(--home-cream);
    background: #ffffff1a;
  }
  .auth-field[data-state='success'] input {
    background: #ffffff1a;
    border-color: #b5b8bc;
  }
  .auth-field[data-state='success'] input,
  .auth-field[data-state='success'] .auth-field-status {
    color: #79bc32;
  }
  .auth-field[data-state='success'] .auth-field-status,
  .auth-field[data-state='loading'] .auth-field-status {
    line-height: 1.4;
  }
  .auth-field[data-state='loading'] .auth-field-status {
    color: #fafafa;
  }
  .auth-content input:disabled {
    color: #73767b;
    border-color: #90949b;
    background: transparent;
  }
  .theme-2027 .auth-main .auth-content .auth-form button[type='submit'] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    margin: 24px 0 0;
    padding: 12px 24px;
    border: 1px solid #fafafa;
    border-radius: 40px;
    background: var(--home-cream);
    color: var(--home-black);
    font: 500 16px/1.5 var(--home-font);
    letter-spacing: 0;
  }
  .theme-2027 .auth-main .auth-content .auth-form button[type='submit']:hover {
    background: #fbb629;
    color: var(--home-black);
  }
  .theme-2027 .auth-main .auth-content .auth-form button[type='submit']:active {
    background: #c9a44c;
  }
  .theme-2027 .auth-main .auth-content .auth-form button[type='submit']:disabled {
    background: #b5b8bc;
    color: var(--home-black);
    cursor: not-allowed;
  }
  .auth-form[aria-busy='true'] button[type='submit']::before,
  .auth-field[data-state='loading'] .auth-field-status::before {
    content: '';
    flex: none;
    width: 12px;
    height: 12px;
    border: 1px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
  }
  .theme-2027 .auth-main .auth-content .auth-form[aria-busy='true'] button[type='submit'] {
    cursor: wait;
  }
  .auth-content .auth-recovery {
    margin: 16px 0 0;
    color: #b5b8bc;
    font: 300 14px/1.2 var(--home-font);
    letter-spacing: 0.05em;
    text-align: center;
  }
  .auth-recovery a {
    color: inherit;
  }
  .auth-content > h2 {
    font-size: 20px;
    margin-top: 32px;
  }
  .template-auth-2027 .home-footer::before {
    display: none;
  }
  .template-auth-2027 .home-colophon {
    padding-top: 80px;
  }
  @keyframes auth-spin {
    to {
      transform: rotate(360deg);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .auth-form[aria-busy='true'] button[type='submit']::before,
    .auth-field[data-state='loading'] .auth-field-status::before {
      animation: none;
    }
  }
  @media (width < 768px) {
    .theme-2027.template-auth-2027 .auth-main {
      padding: 208px 24px 48px;
    }
    .theme-2027.template-auth-2027 .auth-main--split {
      padding: 0;
    }
    .auth-main--split .auth-skyline {
      top: 41px;
    }
    .auth-hero {
      min-height: 336px;
      padding: 216.39px 24px 16px;
    }
    .auth-hero-content {
      max-width: 343px;
      font-size: 14px;
      line-height: 1.2;
    }
    .auth-content > h1,
    .auth-hero h1 {
      margin-bottom: 12px;
      font-size: 28px;
      font-weight: 500;
      text-box-trim: none;
    }
    .auth-main--split .auth-content {
      padding-bottom: 80px;
    }
    .auth-content,
    .auth-field label {
      font-size: 14px;
      line-height: 1.2;
    }
    .auth-content input:not([type='hidden'], [type='checkbox'], [type='radio'], [type='submit']),
    .auth-content select,
    .auth-content textarea {
      min-height: 41px;
      height: 41px;
      font-size: 14px;
      line-height: 1.2;
    }
    .auth-content input:not([type='checkbox'], [type='radio']):focus {
      height: 42px;
    }
    .auth-content textarea {
      height: auto;
    }
    .auth-content .auth-field-help {
      font-size: 12px;
      line-height: 1.5;
      letter-spacing: 0;
    }
    .auth-content .auth-field-errors,
    .auth-content .auth-field .auth-field-status {
      font-size: 12px;
      line-height: normal;
    }
    .theme-2027 .auth-main .auth-content .auth-form button[type='submit'] {
      margin-top: 8px;
    }
    .template-auth-2027 .home-colophon {
      padding-top: 48px;
    }
  }
}
