/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */

/* ── Полноэкранный контейнер ── */
.lp-page {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0e1520;
  overflow-y: auto;
  z-index: 9999;
}

/* ── Фоновое изображение ── */
.lp-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: .15;
  z-index: 0;
  pointer-events: none;
}

/* ── Тёмный оверлей ── */
.lp-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(42,154,176,.07) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(200,162,39,.015) 2px, rgba(200,162,39,.015) 4px),
    linear-gradient(rgba(200,162,39,.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(200,162,39,.04) 1px, transparent 1px) 0 0 / 48px 48px;
  pointer-events: none;
}

/* ── Центральная колонка ── */
.lp-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* ── Логотип сверху ── */
.lp-logo { width: 100%; }
.lp-logo-img { width: 100%; height: auto; display: block; mix-blend-mode: screen; }

/* ── Карточка формы ── */
.lp-card {
  width: 100%;
  box-sizing: border-box;
  background: rgba(14,21,32,.97);
  border: 1px solid #3d4f63;
  clip-path: polygon(12px 0%,100% 0%,100% calc(100% - 12px),calc(100% - 12px) 100%,0% 100%,0% 12px);
  padding: 28px 28px 24px;
}

/* ── Подвал ── */
.lp-footer {
  text-align: center;
  font-size: 10px;
  color: rgba(122,143,168,.4);
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   ФОРМА
══════════════════════════════════════════ */

.lp-form { display: flex; flex-direction: column; gap: 14px; }

.lp-form-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px; font-weight: 700;
  color: #c8a227; letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 4px;
}

.lp-role-hint { color: #c8a227; font-size: 14px; }

/* ── Поле ── */
.lp-field { display: flex; flex-direction: column; gap: 5px; }

.lp-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  color: #7a8fa8; letter-spacing: 2px; text-transform: uppercase;
}

.lp-input-wrap { position: relative; }

.lp-input {
  width: 100%; box-sizing: border-box;
  background: rgba(42,53,69,.5);
  border: 1px solid #3d4f63;
  color: #f0e8cc;
  font-family: 'Exo 2', sans-serif; font-size: 13px;
  padding: 9px 12px;
  outline: none;
  transition: border-color .2s ease;
  clip-path: polygon(6px 0%,100% 0%,100% calc(100% - 6px),calc(100% - 6px) 100%,0% 100%,0% 6px);
}

.lp-input-wrap .lp-input { padding-right: 36px; }

.lp-input::placeholder { color: #7a8fa8; }
.lp-input:focus { border-color: rgba(200,162,39,.6); background: rgba(42,53,69,.8); }
.has-error .lp-input { border-color: rgba(224,64,64,.7); }

.lp-eye-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 14px; opacity: .5; padding: 0; line-height: 1;
}
.lp-eye-btn:hover { opacity: 1; }

.lp-field-error { font-size: 10px; color: #e04040; }
.lp-field-hint  { font-size: 10px; color: #7a8fa8; }

/* ── Запомнить ── */
.lp-remember {
  font-size: 11px; color: #7a8fa8;
  display: flex; align-items: center; gap: 6px;
}
.lp-remember input { cursor: pointer; }

/* ── Ошибка ── */
.lp-error {
  background: rgba(224,64,64,.12); border: 1px solid rgba(224,64,64,.4);
  color: #ff7070; font-size: 12px; padding: 9px 12px;
  clip-path: polygon(6px 0%,100% 0%,100% calc(100% - 6px),calc(100% - 6px) 100%,0% 100%,0% 6px);
}

/* ── Кнопки ── */
.lp-btn-primary {
  width: 100%;
  background: rgba(200,162,39,.15); border: 1px solid rgba(200,162,39,.5);
  color: #c8a227; font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  padding: 11px 0; cursor: pointer;
  clip-path: polygon(8px 0%,100% 0%,100% calc(100% - 8px),calc(100% - 8px) 100%,0% 100%,0% 8px);
  transition: all .2s ease;
}
.lp-btn-primary:hover:not(:disabled) {
  background: rgba(200,162,39,.28); border-color: #c8a227;
  box-shadow: 0 0 20px rgba(200,162,39,.25);
}
.lp-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.lp-spinner { display: inline-block; animation: lp-spin .8s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp-btn-ghost {
  width: 100%;
  background: none; border: 1px solid #3d4f63;
  color: #7a8fa8; font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  padding: 9px 0; cursor: pointer; transition: all .2s ease;
}
.lp-btn-ghost:hover { border-color: rgba(200,162,39,.3); color: #d4c89a; }

/* ── Разделитель ── */
.lp-divider { display: flex; align-items: center; gap: 12px; }
.lp-divider::before, .lp-divider::after { content: ''; flex: 1; height: 1px; background: #3d4f63; }
.lp-divider span { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: #7a8fa8; letter-spacing: 2px; }

/* ── Демо аккаунты ── */
.lp-demo {
  background: rgba(200,162,39,.06); border: 1px solid rgba(200,162,39,.2);
  padding: 10px 12px;
  clip-path: polygon(6px 0%,100% 0%,100% calc(100% - 6px),calc(100% - 6px) 100%,0% 100%,0% 6px);
}
.lp-demo-label { font-size: 9px; font-family: 'Rajdhani',sans-serif; letter-spacing: 2px; color: #7a8fa8; margin-bottom: 8px; }
.lp-demo-btns  { display: flex; gap: 6px; }
.lp-demo-btn {
  flex: 1; padding: 6px 0;
  background: rgba(200,162,39,.1); border: 1px solid rgba(200,162,39,.3);
  color: #c8a227; font-family: 'Rajdhani',sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; cursor: pointer;
  transition: all .2s ease;
}
.lp-demo-btn:hover { background: rgba(200,162,39,.22); }

/* ── Выбор роли ── */
.lp-roles { display: flex; flex-direction: column; gap: 8px; }
.lp-role-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(42,53,69,.3); border: 1px solid #3d4f63;
  padding: 12px 14px; cursor: pointer; transition: all .2s ease; position: relative;
  clip-path: polygon(8px 0%,100% 0%,100% calc(100% - 8px),calc(100% - 8px) 100%,0% 100%,0% 8px);
}
.lp-role-card:hover    { background: rgba(42,53,69,.6); border-color: rgba(200,162,39,.3); }
.lp-role-card.selected { background: rgba(200,162,39,.1); border-color: rgba(200,162,39,.6); }
.lp-role-icon  { font-size: 22px; flex-shrink: 0; }
.lp-role-info  { flex: 1; }
.lp-role-title { font-family: 'Rajdhani',sans-serif; font-size: 13px; font-weight: 700; color: #f0e8cc; letter-spacing: 1px; }
.lp-role-desc  { font-size: 11px; color: #7a8fa8; margin-top: 2px; }
.lp-role-check { font-size: 13px; color: #c8a227; font-weight: 700; flex-shrink: 0; }

/* ── Регистрация ── */
.lp-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.lp-form-actions { display: flex; gap: 10px; }
.lp-form-actions .lp-btn-primary { flex: 1; }
