/* ── Auth modal: login + project selection steps ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 5, 15, 0.8);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #13102A;
  border: 1px solid rgba(123, 94, 167, 0.4);
  border-radius: 20px;
  padding: 2.2rem 2rem 2rem;
  width: 100%; max-width: 360px; margin: 1rem;
  box-shadow: 0 0 80px rgba(123, 94, 167, 0.2);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(123, 94, 167, 0.3);
  background: transparent; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; transition: all 0.2s;
}
.modal-close:hover { background: rgba(123, 94, 167, 0.2); color: var(--text); }
.modal-logo { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; background: linear-gradient(135deg, #C9A8FF, #7EDCFF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.3rem; }
.modal-sub  { font-size: 12px; color: var(--muted); margin-bottom: 1.8rem; }
.modal-field { margin-bottom: 1rem; }
.modal-field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 0.35rem; letter-spacing: 0.07em; text-transform: uppercase; }
.modal-field input,
.modal-field select {
  width: 100%; padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(123, 94, 167, 0.3);
  border-radius: 10px; color: var(--text);
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s, background 0.2s;
  appearance: none; -webkit-appearance: none;
}
.modal-field input:focus,
.modal-field select:focus { border-color: rgba(123, 94, 167, 0.8); background: rgba(123, 94, 167, 0.07); }
/* select стрелка */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; font-size: 14px;
}
.select-wrap select { padding-right: 2.5rem; cursor: pointer; }
.select-wrap select option { background: #13102A; color: var(--text); }
.modal-btn {
  width: 100%; padding: 0.75rem; margin-top: 0.4rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border: none; border-radius: 10px;
  color: #fff; font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.05em;
  cursor: pointer; transition: all 0.2s;
}
.modal-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(123, 94, 167, 0.35); }
.modal-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Кнопка "Назад" — вторичная */
.modal-btn-back {
  width: 100%; padding: 0.55rem; margin-top: 0.5rem;
  background: transparent;
  border: 1px solid rgba(123, 94, 167, 0.3);
  border-radius: 10px; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  cursor: pointer; transition: all 0.2s;
}
.modal-btn-back:hover { border-color: rgba(123, 94, 167, 0.6); color: var(--text); }
.modal-note { font-size: 11px; color: var(--text-tertiary); text-align: center; margin-top: 1.2rem; min-height: 1.2em; }
/* Шаг 2 — заголовок проекта */
.step-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 1.4rem;
}
.step-label span { color: var(--cyan); }
/* Autofill override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0px 1000px #0D0B1A inset !important;
  -webkit-box-shadow: 0 0 0px 1000px #0D0B1A inset !important;
}
