@font-face {
  font-family: StudioInter;
  src: url('/assets/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font:
    14px/1.5 StudioInter,
    Inter,
    'Segoe UI',
    system-ui,
    sans-serif;
  color: #f5f2eb;
  background: #181716;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 78% 8%, #53332930, transparent 53%), #181716;
}
.auth-top {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 60px);
  background: #211f1d;
  border-bottom: 1px solid #3d3934;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.auth-brand img {
  object-fit: contain;
}
.auth-brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.055em;
}
.auth-brand span,
.auth-section {
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.auth-brand span {
  display: block;
  margin-top: 3px;
  color: #bdb8b0;
  font-size: 10.5px;
}
.auth-dev {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d2c9bb;
  font-size: 12px;
}
.auth-dev::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2b75b;
}
main {
  display: grid;
  place-items: center;
  flex: 1;
  padding: clamp(22px, 6vh, 76px) 16px;
}
.auth-card {
  width: min(440px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #544a3c;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 100% 54% at 100% -7%, #7e26363d, transparent),
    radial-gradient(ellipse 70% 40% at 0% 0%, #8f743321, transparent), #292725;
}
.auth-section {
  margin: 0;
  color: #e4bb63;
  font-size: 10.5px;
  font-weight: 650;
}
h1 {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 7px 0 8px;
}
.intro {
  margin: 0;
  color: #cac3b8;
  line-height: 1.55;
}
form {
  margin-top: 24px;
}
.field {
  display: grid;
  gap: 6px;
  margin: 13px 0 0;
  color: #f5f2eb;
  font-size: 13px;
  font-weight: 570;
}
.field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font:
    400 15px/1.4 StudioInter,
    Inter,
    'Segoe UI',
    system-ui,
    sans-serif;
  border-radius: 8px;
  border: 1px solid #796e60;
  background: #201e1c;
  color: #f5f2eb;
}
.field-hint {
  margin: 5px 0 0;
  color: #bdb8b0;
  font-size: 12px;
}
.show-password {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 9px 0;
  min-height: 32px;
  color: #cec7bb;
  cursor: pointer;
  font-size: 13px;
}
.show-password input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #c99d38;
}
:focus-visible {
  outline: 2px solid #ecc775;
  outline-offset: 3px;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary,
.secondary {
  min-height: 44px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #d55162;
  border-radius: 8px;
  background: #a90e25;
  color: #fff;
  font-weight: 620;
}
.primary:hover:not(:disabled) {
  background: #be1932;
}
.secondary {
  background: #312d27;
  border-color: #8f7a52;
}
.auth-error {
  margin: 9px 0;
  padding: 9px 11px;
  border-left: 2px solid #ef8890;
  background: #412a2b;
  color: #ffcbcd;
  overflow-wrap: anywhere;
}
#cancel-change {
  display: block;
  margin: 13px auto 0;
  color: #edc46c;
  text-align: center;
}
@media (max-width: 600px) {
  .auth-top {
    min-height: 60px;
  }
  main {
    align-items: start;
    padding-top: min(10vh, 72px);
  }
  .field input {
    font-size: 16px;
  }
}
