/* Единая оболочка для страниц старой вёрстки (админские разделы, аналитика, оферта) и для гостевых страниц
   (вход, регистрация, пароль). Их разметку не переписываем — приводим к виду брендбука: Manrope,
   фиолетовый #7F4EFF, мятный #31E3AF, чёрный #1E1E1E, серый #F5F5F5. */

/* ---------- страницы старой вёрстки внутри бокового меню ---------- */
.legacy { font-family: 'Manrope', -apple-system, sans-serif; color: #1E1E1E; }
.legacy__card { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px; }
.legacy .alteco-scan__header { margin: 0; }
.legacy .alteco-scan__title, .legacy h1.alteco-title, .legacy .alteco-title { margin: 0; font: 700 20px/1.25 'Manrope', sans-serif; color: #1E1E1E; text-transform: none; letter-spacing: 0; }
.legacy .alteco-scan__subtitle, .legacy .alteco-subtitle { margin: 4px 0 0; font: 400 13px/1.4 'Manrope', sans-serif; color: #717171; }
.legacy h2, .legacy h3 { font-family: 'Manrope', sans-serif; font-weight: 700; color: #1E1E1E; }
.legacy p, .legacy label, .legacy li, .legacy td, .legacy th, .legacy span, .legacy small { font-family: 'Manrope', sans-serif; }
.legacy a { color: #7F4EFF; }
.legacy .text-secondary { color: #717171; }

/* кнопки старого сайта → кнопка новой версии */
.legacy .btn, .legacy button[type="submit"]:not(.rs-link):not(.cr-action), .legacy input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 0; padding: 0 18px;
  border: 1px solid #7F4EFF; border-radius: 8px; background: #7F4EFF; color: #fff; font: 600 14px/1 'Manrope', sans-serif;
  text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; transition: background-color .15s;
}
.legacy .btn:hover, .legacy button[type="submit"]:hover { background: #6E3FF0; color: #fff; }
.legacy .btn.btn-danger, .legacy .btn.bg-red, .legacy button.btn-danger { background: #fff; color: #FD4A4A; border-color: #FD4A4A; }
.legacy .btn.btn-danger:hover { background: #FFF1F1; }
.legacy .btn-outline, .legacy .btn.btn-secondary { background: #fff; color: #1E1E1E; border-color: #1E1E1E; }

/* поля форм */
.legacy input[type="text"], .legacy input[type="email"], .legacy input[type="password"], .legacy input[type="number"], .legacy input[type="url"],
.legacy input[type="date"], .legacy textarea, .legacy select {
  width: 100%; height: 42px; margin: 0; padding: 0 14px; border: 1px solid #D5D5D5; border-radius: 8px; background: #fff; box-shadow: none;
  font: 500 14px/1.2 'Manrope', sans-serif; color: #1E1E1E; outline: 0;
}
.legacy textarea { height: auto; min-height: 120px; padding: 10px 14px; line-height: 1.45; }
.legacy input:focus, .legacy textarea:focus, .legacy select:focus { border-color: #7F4EFF; }
.legacy label { font: 500 13px/1.3 'Manrope', sans-serif; color: #717171; }
.legacy input[type="checkbox"], .legacy input[type="radio"] { width: 16px; height: 16px; accent-color: #7F4EFF; }
.legacy .invalid-feedback, .legacy .text-red { color: #B42318; }
.legacy .border.rounded-lg, .legacy .border-2 { border: 1px solid #E5E5E5 !important; border-radius: 12px; background: #FAFAFB; }

/* таблицы */
.legacy .alteco-table__wrap { overflow-x: auto; }
.legacy .alteco-table { width: 100%; border-collapse: collapse; }
.legacy .alteco-table__head .alteco-table__cell { padding: 0 10px 10px; font: 400 11px/1.2 'Manrope', sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #717171; text-align: left; white-space: nowrap; background: transparent; border: 0; }
.legacy .alteco-table__body .alteco-table__cell { padding: 10px; border-top: 1px solid #E5E5E5; font: 500 14px/1.3 'Manrope', sans-serif; color: #1E1E1E; vertical-align: middle; }
.legacy .alteco-table__row:hover .alteco-table__cell { background: #FAFAFB; }
.legacy .alteco-table__cell-content { display: flex; align-items: center; gap: 6px; }
.legacy .badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 100px; background: #F1ECFF; color: #7F4EFF; font: 600 11px/1 'Manrope', sans-serif; }

/* постраничная навигация Laravel */
.legacy nav[role="navigation"] { font-family: 'Manrope', sans-serif; }
.legacy nav[role="navigation"] a, .legacy nav[role="navigation"] span[aria-current] > span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; color: #1E1E1E; text-decoration: none; }
.legacy nav[role="navigation"] span[aria-current] > span { background: #7F4EFF; color: #fff; border: 0; }

/* подменю аналитики (старая вёрстка) */
.legacy .alteco-menu, .legacy ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.legacy .alteco-menu li a, .legacy ul.tabs li { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid #D5D5D5; border-radius: 8px; background: #fff; color: #1E1E1E; font: 500 13px/1 'Manrope', sans-serif; text-decoration: none; }
.legacy .alteco-menu li.active a, .legacy ul.tabs li.show, .legacy ul.tabs li.active { border-color: #7F4EFF; background: #F1ECFF; color: #7F4EFF; }

@media (max-width: 760px) {
  .legacy__card { padding: 16px; }
  .legacy .grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- гостевые страницы: вход, регистрация, пароль ---------- */
.alteco-wrapper--auth { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; background: #F6F7F9; font-family: 'Manrope', -apple-system, sans-serif; color: #1E1E1E; }
.auth-shell { width: 100%; max-width: 440px; margin: 0 auto; padding: 56px 16px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.auth-shell__logo img { height: 34px; width: auto; display: block; }
.auth-shell__card { width: 100%; padding: 32px 32px 28px; border-radius: 20px; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .08); }
.auth-shell__foot { margin: 0; font: 500 12px/1.3 'Manrope', sans-serif; color: #9CA3AF; }
.auth-shell .auth-container, .auth-shell .login-container { max-width: none; margin: 0; padding: 0; width: 100%; }
.auth-shell .alteco-title, .auth-shell h1 { margin: 0 0 18px; font: 700 24px/1.2 'Manrope', sans-serif; color: #1E1E1E; text-transform: none; letter-spacing: 0; }
.auth-shell form { display: flex; flex-direction: column; gap: 14px; }
.auth-shell label { font: 500 13px/1.3 'Manrope', sans-serif; color: #717171; margin: 0 0 6px; }
.auth-shell label.m-0 { margin: 0; }
.auth-shell input[type="text"], .auth-shell input[type="email"], .auth-shell input[type="password"] {
  width: 100%; height: 44px; margin: 0; padding: 0 14px; border: 1px solid #D5D5D5; border-radius: 8px; background: #fff; box-shadow: none;
  font: 500 15px/1.2 'Manrope', sans-serif; color: #1E1E1E; outline: 0;
}
.auth-shell input:focus { border-color: #7F4EFF; }
.auth-shell input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #7F4EFF; }
.auth-shell .btn, .auth-shell button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 46px; padding: 0 18px; border: 0; border-radius: 8px;
  background: #7F4EFF; color: #fff; font: 600 15px/1 'Manrope', sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none;
}
.auth-shell .btn:hover, .auth-shell button[type="submit"]:hover { background: #6E3FF0; color: #fff; }
.auth-shell a { color: #7F4EFF; font: 500 14px/1.3 'Manrope', sans-serif; text-decoration: none; }
.auth-shell a:hover { text-decoration: underline; }
.auth-shell .flex.items-center.gap-x-4 { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.auth-shell .invalid-feedback, .auth-shell .text-red { color: #B42318; font: 500 13px/1.4 'Manrope', sans-serif; }
.auth-shell .p-4.border { padding: 12px 14px; border: 0 !important; border-radius: 10px; background: #FFF1F1; }
.auth-shell .p-4.border ul { margin: 0; padding-left: 18px; }
.auth-shell .alert, .auth-shell .alert-success { padding: 12px 14px; border-radius: 10px; background: #E1FAF2; color: #0E7A5B; font: 500 13px/1.4 'Manrope', sans-serif; }
.auth-shell .btn.bg-orange, .auth-shell .btn.btn1 { background: #7F4EFF !important; color: #fff !important; }
.auth-shell .auth-container, .auth-shell .login-container, .auth-shell .register-container { box-shadow: none; border: 0; background: transparent; border-radius: 0; }
