/* Форма входа Core Planner — использует токены из theme.css, остальные стили не затрагивает */
.auth-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg-canvas);
  font-family: var(--font-sans); color: var(--text-primary);
}
.auth-card {
  width: 100%; max-width: 360px; padding: 32px 28px 28px;
  background: var(--bg-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-large);
  display: flex; flex-direction: column; gap: 14px;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 8px; }
/* The kotask logo with the approved proportions (same as the sidebar's and the app icon): a thin «k», 25/26 of the
   square, corners 8/26 */
.auth-logo {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--on-accent); font: 200 50px/1 'Inter', var(--font-sans);
  box-shadow: 0 0 12px color-mix(in srgb, var(--shadow) var(--shadow-strength), transparent);
}
.auth-title { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.auth-sub { color: var(--text-secondary); font-size: 13px; margin-top: -6px; }
.auth-field {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px;
  background: var(--bg-control); color: var(--text-primary);
  border: 0; border-radius: var(--radius-sm); font: 400 15px var(--font-sans); outline: none;
  transition: box-shadow 0.15s ease;
}
.auth-field::placeholder { color: var(--text-placeholder); }
.auth-field:focus { box-shadow: none; background: var(--bg-control-hover); }
.auth-submit {
  height: 44px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--blue); color: var(--on-accent); font: 600 15px var(--font-sans);
  transition: background 0.15s ease, opacity 0.15s ease;
}
@media (hover: hover) { .auth-submit:hover { background: var(--blue-hover); } }
.auth-submit:disabled { opacity: 0.55; cursor: default; }
.auth-error { min-height: 18px; color: var(--red); font-size: 13px; text-align: center; }
/* no bottom margin: with the sidebar's own padding the letters of "Сохранено" end as far from the bottom edge as
   the name starts from the left one (26px) */
.auth-logout { margin: 12px 14px -1px; }
/* Settings and "Выйти" under the sidebar: no fill of their own, only the highlight under the pointer;
   the settings button is a square as high as "Выйти" */
.auth-logout .btn-secondary { background: none; }
@media (hover: hover) { .auth-logout .btn-secondary:hover { background-color: var(--bg-hover); } }
.auth-logout .auth-settings {
  width: 26px; height: 26px; min-height: 26px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.auth-field[hidden] { display: none; }
.auth-switch {
  background: none; border: 0; padding: 4px; cursor: pointer;
  color: var(--blue); font: 400 13px var(--font-sans);
}
@media (hover: hover) { .auth-switch:hover { color: var(--blue-hover); } }
