/* ===== LOGIN MODAL STYLES ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade-in 0.2s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-slide-up 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal .form.glass {
  margin: 0;
  padding: 28px;
}

.modal .eyebrow {
  margin-bottom: 8px;
}

.modal h1 {
  margin: 0 0 20px;
  font-size: 1.5rem;
}

.modal .field {
  margin-bottom: 14px;
}

.modal .input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0d1a;
  color: var(--ink);
  font: inherit;
}

.modal .input:focus {
  outline: 2px solid var(--blue);
}

.modal .button {
  width: 100%;
  margin-top: 8px;
}

.modal .help {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal .notice {
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #2a2200;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }
  .modal {
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
  }
  .modal .form.glass {
    padding: 24px 20px 30px;
  }
}