/* IPM-STUDIO — страница входа. Самостоятельная: не зависит от app.css (он закрыт до входа). */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/login/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/login/manrope-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 {
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --line: #E4E8EF;
  --ink: #1B2537;
  --ink-2: #4A5568;
  --ink-3: #8592A6;
  --brand: #3D7BF7;
  --brand-ink: #2459C9;
  --brand-soft: #EAF1FE;
  --danger: #E5484D;
  --danger-soft: #FDECEC;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(61, 123, 247, .12), transparent 60%),
    radial-gradient(700px 420px at 100% 110%, rgba(138, 92, 246, .10), transparent 60%),
    var(--bg);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 16px 48px rgba(16, 24, 40, .10);
  padding: 32px 28px 28px;
}

.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-brand img { display: block; filter: drop-shadow(0 3px 8px rgba(61, 123, 247, .3)); }
.login-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.login-brand-text b { font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.login-brand-text small { font-size: 13px; color: var(--ink-3); }

h1 { font-size: 20px; font-weight: 700; margin: 0 0 16px; }

.login-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: #B42318;
  font-size: 14px;
  font-weight: 600;
}

.login-field { display: block; margin-bottom: 14px; }
.login-field span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #D5DBE5;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.login-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.login-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.login-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); cursor: pointer; }

#login-submit {
  width: 100%;
  height: 46px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(61, 123, 247, .3);
  cursor: pointer;
}
#login-submit:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 420px) {
  body { align-items: flex-start; padding-top: 40px; }
  .login-card { padding: 26px 20px 22px; border-radius: 16px; }
}
