/* ============================================================
   Кабинет Директора — стили
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   СТРАНИЦА ВХОДА
   ============================================================ */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* размытый цветной фон-меш (как на референсе), без внешних картинок */
  background:
    radial-gradient(closest-side at 42% 12%, rgba(247,183,163,0.95), transparent 70%),
    radial-gradient(closest-side at 68% 16%, rgba(255,208,138,0.75), transparent 70%),
    radial-gradient(closest-side at 90% 42%, rgba(94,126,180,0.85), transparent 72%),
    radial-gradient(closest-side at 12% 88%, rgba(31,122,90,0.85), transparent 72%),
    radial-gradient(closest-side at 58% 92%, rgba(38,30,66,0.9), transparent 72%),
    linear-gradient(135deg, #4a3a5e 0%, #24304a 55%, #101820 100%);
}
/* лёгкое дополнительное размытие поверх, чтобы цвета "плыли" */
.login-body::before {
  content: "";
  position: absolute; inset: -10%;
  background: inherit;
  filter: blur(60px) saturate(115%);
  transform: scale(1.1);
  z-index: 0;
}

.login-wrap { position: relative; z-index: 1; width: 100%; padding: 20px; display: flex; justify-content: center; }

.login-card {
  width: 340px;
  max-width: 100%;
  padding: 38px 34px 34px;
  border-radius: 14px;
  background: rgba(18, 18, 24, 0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #e8e8ea;
}

.login-title {
  margin: 0;
  text-align: center;
  font-weight: 300;
  font-size: 30px;
  letter-spacing: 8px;
  color: #f0f0f2;
}
.login-rule {
  height: 1px;
  margin: 14px auto 26px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}

.login-error {
  margin: 0 0 16px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(249, 96, 88, 0.15);
  border: 1px solid rgba(249, 96, 88, 0.45);
  color: #ffb3ad;
  font-size: 13px;
  text-align: center;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 14px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color .15s, background .15s;
}
.field:focus-within {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}
.field-icon { display: flex; color: rgba(255,255,255,0.55); }
.field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f0f2;
  font-size: 14px;
  letter-spacing: .3px;
}
.field input::placeholder { color: rgba(255,255,255,0.5); }

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
  font-size: 13px;
}
.remember { display: flex; align-items: center; gap: 8px; color: #d9d9dc; cursor: pointer; user-select: none; }
.remember input { accent-color: #f9605a; width: 15px; height: 15px; }
.forgot { color: rgba(255,255,255,0.7); font-style: italic; text-decoration: none; }
.forgot:hover { color: #fff; }

.login-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fb6a60 0%, #f4564c 100%);
  box-shadow: 0 8px 20px rgba(244, 86, 76, 0.35);
  transition: filter .15s, transform .05s;
}
.login-btn:hover { filter: brightness(1.06); }
.login-btn:active { transform: translateY(1px); }

/* ============================================================
   ПАНЕЛЬ (заглушка после входа)
   ============================================================ */
.app-body { background: #141414; color: #eaeaea; }
.dash-shell { min-height: 100vh; display: flex; flex-direction: column; }
.dash-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: #0f0f0f;
  border-bottom: 1px solid #2a2a2a;
}
.dash-brand { font-weight: 700; letter-spacing: .5px; color: #f5a623; }
.dash-logout {
  color: #d9d9dc; text-decoration: none; font-size: 14px;
  padding: 7px 14px; border-radius: 8px; border: 1px solid #2a2a2a;
}
.dash-logout:hover { background: #1c1c1c; color: #fff; }
.dash-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dash-hello { max-width: 560px; text-align: center; }
.dash-hello h1 { margin: 0 0 12px; font-weight: 700; }
.dash-hello p { margin: 0; color: #9a9a9a; line-height: 1.6; }
