.auth-entry {
  box-sizing: border-box;
  color-scheme: dark;
  width: min(1140px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: clamp(32px, 5vw, 68px);
  padding-block: 48px;
}

.auth-entry .auth-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
}

.auth-entry .auth-card h1 { margin: 0 0 8px; line-height: 1.16; }
.auth-entry .muted { margin: 0; color: #b2b6bd; }

.auth-brand .auth-brand__name {
  margin: 10px 0 0;
  color: #f8f5ed;
  font-size: clamp(24px, 3.6vw, 50px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}

.auth-entry--register { align-items: start; }
.auth-entry--register .auth-brand { position: sticky; top: 48px; }
.auth-entry .auth-fields { gap: 16px; margin: 24px 0 0; }
.auth-fields--registration { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.auth-field--wide, .auth-fields--registration .auth-actions { grid-column: 1 / -1; }

.auth-field label small, .auth-entry .field-help, .auth-entry .auth-note {
  color: #a6acb7;
  font-size: 12px;
}

.auth-field label small { font-size: 11px; white-space: nowrap; }
.auth-entry .field-help ul { margin: 0; padding-inline-start: 18px; color: inherit; font-size: inherit; }
.auth-field :is(input, textarea) { box-sizing: border-box; min-width: 0; }

.auth-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(237, 196, 91, .24);
  border-radius: 9px;
  background: #0b0d10;
  color: #f8f5ed;
  font: inherit;
  resize: vertical;
}

.auth-field input[type="file"] { overflow: hidden; text-overflow: ellipsis; }
.auth-field input::file-selector-button {
  margin-inline-end: 8px;
  padding: 5px 9px;
  border: 1px solid #756339;
  border-radius: 6px;
  background: #211c12;
  color: #ffe39a;
  font: inherit;
  cursor: pointer;
}

.auth-entry .auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.auth-entry .auth-actions--single { grid-template-columns: 1fr; margin-top: 24px; }

.auth-action {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8c7440;
  border-radius: 9px;
  background: linear-gradient(135deg, #2d2413, #15120d);
  color: #ffe39a;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.auth-action:hover { border-color: #edc45b; background: #352a17; }
.auth-entry :is(.auth-action, input, textarea):focus-visible {
  outline: 2px solid #edc45b;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .auth-entry {
    grid-template-columns: minmax(0, 540px);
    justify-content: center;
    align-content: center;
    gap: 26px;
    padding-block: 32px;
  }

  .auth-entry--register .auth-brand { position: static; }
  .auth-entry .auth-brand img { width: min(168px, 70%); }
  .auth-entry .auth-brand > span { margin-top: 12px; }
}

@media (max-width: 520px) {
  .auth-entry { width: calc(100% - 28px); }
  .auth-entry .auth-actions, .auth-fields--registration { grid-template-columns: 1fr; }
}
