:root {
  color-scheme: dark;
  --bg: #1a1821;
  --panel: #1b1823;
  --text: #ececef;
  --muted: #c2c1ca;
  --link: #9cc8fb;
  --border: #5a5762;
  --button-blue: #6ea7e5;
  --button-blue-text: #121018;
  --button-gray: #4f4d56;
  --footer-border: #403d47;
  --focus: #408cf4;
  font-family: "GitLab Sans", system-ui, sans-serif;
}

@font-face {
  font-family: "GitLab Sans";
  src: url("https://unpkg.com/@gitlab/fonts@1.3.1/gitlab-sans/GitLabSans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GitLab Sans";
  src: url("https://unpkg.com/@gitlab/fonts@1.3.1/gitlab-sans/GitLabSans-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.auth-layout {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 46px 24px 44px;
}

.auth-panel {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
}

.brand-mark {
  width: 58px;
  height: 54px;
  margin-bottom: 15px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

h1 {
  margin: 0 0 19px;
  font-size: 19px;
  line-height: 1.26;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sign-in-form {
  width: 100%;
  max-width: 465px;
  margin: 0 auto;
}

.field {
  display: block;
  margin-bottom: 17px;
}

.field span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #16141c;
  color: var(--text);
  outline: none;
  box-shadow: none;
}

.field input:focus {
  border-color: #a4cbf5;
  box-shadow: 0 0 0 2px var(--focus);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 38px;
}

.icon-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dddce2;
}

.icon-button svg,
.secondary-button svg,
.provider-button svg,
.language-button svg {
  display: block;
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.password-meta {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 18px;
}

.forgot-link {
  font-size: 14px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  line-height: 1.2;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  border-radius: 4px;
  border: 1px solid #787582;
  background: transparent;
}

.checkbox-bottom {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.primary-button,
.secondary-button,
.provider-button {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.primary-button {
  margin-bottom: 14px;
  background: var(--button-blue);
  color: var(--button-blue-text);
  font-size: 11px;
  font-weight: 500;
}

.secondary-button {
  margin-bottom: 10px;
  background: var(--button-gray);
  color: #f1f0f4;
  font-size: 11px;
  font-weight: 600;
}

.secondary-button svg {
  width: 15px;
  height: 15px;
}

.legal-copy,
.register-copy {
  margin: 0;
  text-align: left;
  font-size: 11px;
  line-height: 1.45;
}

.legal-copy {
  color: #e4e4e9;
}

.register-copy {
  margin-top: 8px;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 24px;
}

.divider span {
  flex: 1;
  height: 1px;
  background: #4b4852;
}

.divider p {
  margin: 0;
  color: #e2e1e7;
  font-size: 11px;
}

.providers {
  display: grid;
  gap: 7px;
}

.provider-button {
  background: #514e58;
  color: #f2f1f4;
  font-size: 11px;
  font-weight: 500;
}

.provider-button svg {
  width: 16px;
  height: 16px;
}

.provider-button--text {
  gap: 0;
}

.site-footer {
  width: 100%;
  min-height: 58px;
  border-top: 1px solid var(--footer-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 24px 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: center;
}

.footer-links a,
.footer-settings,
.language-button {
  color: #9dc7f7;
  font-size: 12px;
}

.footer-settings {
  color: #e7e6eb;
  justify-self: center;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ececef;
  justify-self: end;
}

.language-button svg:first-child {
  width: 18px;
  height: 18px;
}

.caret {
  width: 11px;
  height: 11px;
}

@media (max-width: 980px) {
  .auth-layout {
    padding-inline: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-settings,
  .language-button {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .auth-layout {
    padding: 28px 18px 40px;
  }

  .auth-panel {
    max-width: 100%;
  }

  .field span,
  .checkbox,
  .legal-copy,
  .register-copy,
  .divider p,
  .provider-button,
  .primary-button,
  .secondary-button,
  .footer-links a,
  .footer-settings,
  .language-button {
    font-size: 16px;
  }

  .form-row {
    margin-bottom: 18px;
  }

  .password-meta {
    justify-content: flex-start;
    margin: -4px 0 18px;
  }

  .forgot-link {
    line-height: 1.35;
  }

  .divider {
    gap: 14px;
    margin: 24px 0 30px;
  }

  .checkbox-bottom {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .auth-layout {
    padding: 22px 14px 32px;
  }

  .brand-mark {
    width: 72px;
    height: 68px;
    margin-bottom: 10px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 24px;
  }

  .field {
    margin-bottom: 14px;
  }

  .field input,
  .primary-button,
  .secondary-button,
  .provider-button {
    height: 44px;
  }

  .legal-copy,
  .register-copy {
    line-height: 1.4;
  }

  .footer-links {
    gap: 14px 18px;
  }

  .footer-links a,
  .footer-settings,
  .language-button {
    font-size: 15px;
  }
}
