/* Страница входа: одна карточка по центру, жёлтый акцент, шрифт Wix Madefor Display. */
@font-face {
  font-family: "Wix Madefor Display";
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/wix-madefor-display-cyrillic-wght-normal.07747646705d.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Wix Madefor Display";
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/wix-madefor-display-latin-wght-normal.522d38acc1ea.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.sl {
  --sl-bg: #ffffff;
  --sl-block: #f6f6f6;
  --sl-block-2: #ebeaed;
  --sl-text: #181717;
  --sl-muted: #797979;
  --sl-line: #e0e0e0;
  --sl-yellow: #f3d45e;
  --sl-yellow-hover: #eccb4a;
  --sl-danger: #c8322b;
  color-scheme: light;
  min-height: 100vh; margin: 0; background: var(--sl-bg); color: var(--sl-text);
  font: 15px/1.45 "Wix Madefor Display", "Inter", system-ui, sans-serif;
  display: grid; place-items: center; padding: 16px;
}
:root[data-theme="dark"] .sl {
  --sl-bg: #121212; --sl-block: #1e1e1f; --sl-block-2: #2a2a2c; --sl-text: #f2f2f2;
  --sl-muted: #9a9a9a; --sl-line: #333; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sl {
    --sl-bg: #121212; --sl-block: #1e1e1f; --sl-block-2: #2a2a2c; --sl-text: #f2f2f2;
    --sl-muted: #9a9a9a; --sl-line: #333; color-scheme: dark;
  }
}
.sl a { color: inherit; text-decoration: none; }
.sl * { box-sizing: border-box; }

/* Одна карточка по центру экрана */
.sl-center { width: 100%; display: flex; justify-content: center; }
.sl-card {
  width: min(420px, 100%); padding: 40px; border: 1px solid var(--sl-line); border-radius: 28px; background: var(--sl-bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .06);
}
.sl-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 28px; }
.sl-logo { width: 36px; height: 36px; border-radius: 12px; background: var(--sl-yellow); color: #181717; display: grid; place-items: center; }
.sl-logo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sl-pill {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px;
  border-radius: 16px; border: 0; font: inherit; cursor: pointer; transition: background .15s;
}
.sl-pill-yellow { background: var(--sl-yellow); color: #181717; }
.sl-pill-yellow:hover { background: var(--sl-yellow-hover); }

.sl-card h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.sl-card .sl-sub { color: var(--sl-muted); margin: 8px 0 24px; }
.sl-field { margin-bottom: 14px; }
.sl-field label { display: block; font-size: 13px; color: var(--sl-muted); margin: 0 0 6px 4px; }
.sl-input { position: relative; }
.sl-input input {
  width: 100%; height: 52px; padding: 0 18px; border: 2px solid transparent; border-radius: 16px; background: var(--sl-block);
  color: var(--sl-text); font: inherit; font-size: 16px; outline: none; transition: border-color .15s, background .15s;
}
.sl-input input:hover { background: var(--sl-block-2); }
.sl-input input:focus { border-color: var(--sl-yellow); background: var(--sl-bg); }
.sl-input input[type=password], .sl-input input#id_password { padding-right: 52px; }
.sl-eye {
  position: absolute; right: 7px; top: 7px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent;
  color: var(--sl-muted); cursor: pointer; display: grid; place-items: center;
}
.sl-eye:hover { background: var(--sl-block-2); color: var(--sl-text); }
.sl-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sl-submit { width: 100%; height: 52px; margin-top: 10px; font-size: 16px; font-weight: 600; }
.sl-error { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fdecea; color: var(--sl-danger); font-size: 14px; margin-bottom: 16px; }
:root[data-theme="dark"] .sl-error { background: #3a1e1e; color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sl-error { background: #3a1e1e; color: #ff8a80; } }
.sl-hint { margin-top: 18px; text-align: center; color: var(--sl-muted); font-size: 13px; }

@media (max-width: 480px) {
  .sl { padding: 12px; }
  .sl-card { padding: 28px 20px; border-radius: 22px; box-shadow: none; }
  .sl-card h2 { font-size: 24px; }
}
