/* Crystal Lab — вход. Та же «редакционная» тема, что и портал. */

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

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/lora-latin.woff2") format("woff2");
  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;
}

:root {
  --paper: #f2f0e9;
  --paper-tint: #e8e5da;
  --paper-deep: #ebe8de;
  --ink: #23211b;
  --muted: #6e685c;
  --faint: #948d7e;
  --accent: #33604f;
  --accent-deep: #26493c;
  --accent-soft: rgba(51, 96, 79, .1);
  --terra: #99553f;
  --radius: 10px;
  --radius-sm: 8px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 380px);
  padding: 0;
  background: transparent;
}

.brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 30px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
}

h1,
p {
  margin: 0;
}

h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}

p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

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

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  outline: 0;
  padding: 0 12px;
  background: var(--paper-tint);
  color: var(--ink);
  transition: background-color .12s ease, box-shadow .12s ease;
}

input:focus {
  background: var(--paper-deep);
  box-shadow: inset 0 0 0 2px var(--accent-soft);
}

button {
  height: 45px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background-color .12s ease;
}

button:hover {
  background: var(--accent-deep);
}

button:disabled {
  opacity: .65;
  cursor: default;
}

.login-error {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(153, 85, 63, .1);
  color: #7c3a28;
  font-size: 13.5px;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .login-shell {
    padding: 48px;
  }

  .login-panel {
    width: min(100%, 780px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: center;
    padding: 0;
  }

  .brand {
    height: 100%;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-content: center;
    margin-bottom: 0;
    padding: 0;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    font-size: 19px;
  }

  h1 {
    font-size: 40px;
  }

  p {
    margin-top: 8px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .login-shell {
    padding: 20px;
  }
}
