/* ===== PRINTAXIS — MODAL ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text2);
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.modal h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  font-size: 0.875rem;
  color: var(--text2);
  margin-bottom: 28px;
}

/* ===== TAB SWITCH ===== */
.tab-switch {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 8px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text2);
  transition: background 0.2s, color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--text);
}

/* ===== LOGIN FORM ===== */
.modal .btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.modal .btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.modal-footer-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 16px;
}

.modal-footer-text a { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  .modal { padding: 32px 24px; }
}
