/* Только страница входа: форма по центру, без панелей приложения */

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-cyrillic-500.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin-500.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: "Roboto", sans-serif;
  color: #1a1a1a;
  background: #f4f4f5;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

#auth-form {
  width: min(22rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
}

#auth-form h1,
#auth-form h2 {
  margin: 0;
}

#auth-form h2 {
  font-size: 1rem;
  font-weight: 600;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
}

input {
  font: inherit;
  padding: 0.375rem 0.5rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.25rem;
}

button {
  font: inherit;
  padding: 0.25rem 0.5rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.25rem;
  background: #fff;
  cursor: pointer;
}

button:hover {
  background: #f4f4f5;
}

#auth-error {
  margin: 0;
  font-size: 0.875rem;
  color: #b91c1c;
}
