/* ─── Auth Modal Styles ─── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: authFadeIn 200ms ease;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: authSlideUp 250ms ease;
}

@keyframes authSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f4f4f5;
  color: #71717a;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
}
.auth-close:hover {
  background: #e4e4e7;
  color: #18181b;
}

.auth-logo {
  text-align: center;
  margin-bottom: 16px;
}

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 4px;
}

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: #71717a;
  margin: 0 0 20px;
}

.auth-error {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #18181b;
  background: #fafafa;
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
}

.auth-field input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: #ffffff;
}

.auth-field input::placeholder {
  color: #a1a1aa;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-btn {
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: #0ea5e9;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
}
.auth-btn:hover:not(:disabled) {
  background: #0284c7;
}
.auth-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn-secondary {
  background: transparent;
  color: #71717a;
  border: 1px solid #e5e7eb;
}
.auth-btn-secondary:hover:not(:disabled) {
  background: #f4f4f5;
  color: #18181b;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #71717a;
  margin: 0;
}

.auth-switch a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover {
  text-decoration: underline;
}


@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
  }
  .auth-row {
    grid-template-columns: 1fr;
  }
  .auth-title {
    font-size: 19px;
  }
}
