@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/profile/inter-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/profile/inter-latin-500.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --auth-page: #141415;
  --auth-surface: #1d1e20;
  --auth-field: #2e3035;
  --auth-border: rgba(179, 182, 189, .16);
  --auth-text: #f0f2f5;
  --auth-muted: #9aa1b1;
  --auth-green: #00b24b;
  --auth-danger: #ff7557;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--auth-page);
  color: var(--auth-text);
  display: grid;
  place-items: center;
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.auth-shell {
  width: min(100%, 408px);
}

.auth-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 28px;
  display: block;
}

.auth-login-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 1px solid var(--auth-border);
  border-radius: 50%;
  background: var(--auth-surface);
  display: grid;
  place-items: center;
}

.auth-login-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.auth-panel {
  padding: 24px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: var(--auth-surface);
}

.auth-heading {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.auth-description {
  margin: 0 0 24px;
  color: var(--auth-muted);
}

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

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 500;
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  background: var(--auth-field);
  color: var(--auth-text);
  font: inherit;
}

.auth-field input:focus {
  border-color: rgba(0, 178, 75, .8);
}

.auth-field input[aria-invalid="true"] {
  border-color: var(--auth-danger);
}

.auth-help {
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 16px;
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--auth-danger);
  background: rgba(246, 61, 0, .1);
  color: #ffc4b6;
}

.auth-submit,
.auth-secondary {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.auth-submit {
  background: var(--auth-green);
  color: #fff;
}

.auth-secondary {
  border: 1px solid var(--auth-border);
  background: transparent;
  color: var(--auth-text);
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.auth-footer {
  margin-top: 18px;
  color: var(--auth-muted);
  text-align: center;
}

.auth-footer a,
.auth-language a {
  color: var(--auth-text);
}

.auth-language {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-language a[aria-current="true"] {
  color: var(--auth-green);
  text-decoration: none;
}

@media (max-width: 480px) {
  body {
    padding: 18px 12px;
    align-items: start;
  }

  .auth-shell {
    padding-top: 28px;
  }

  .auth-panel {
    padding: 20px 16px;
  }
}
