/* ══════════════════════════════════════════════════════
   AUTH LOGIN MODAL
══════════════════════════════════════════════════════ */

#auth-login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease-out;
}

#auth-login-modal.open {
  display: flex;
}

.auth-login-card {
  background: white;
  border-radius: 8px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}

.auth-login-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-login-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.auth-login-header .logo-icon {
  width: 40px;
  height: 40px;
}

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

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

.auth-form-group label {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.auth-form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.auth-form-group input:focus {
  outline: none;
  border-color: #3a9c3a;
  box-shadow: 0 0 0 2px rgba(58, 156, 58, 0.1);
}

.auth-form-group small {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

#auth-message {
  display: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  animation: slideDown 0.2s ease-out;
}

#auth-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#auth-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.auth-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn-primary {
  background: #3a9c3a;
  color: white;
}

.auth-btn-primary:hover {
  background: #2e7d2e;
}

.auth-btn-primary:active {
  transform: scale(0.98);
}

.auth-btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.auth-btn-secondary:hover {
  background: #d0d0d0;
}

/* ══════════════════════════════════════════════════════
   AUTH STATUS BAR
══════════════════════════════════════════════════════ */

#auth-status {

  background: var(--green, #3a9c3a);
  color: white;
  padding: 10px 18px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: slideDown 0.2s ease-out;
}

#header #auth-status {
  display: none;
}

#auth-status.show {
  display: flex;
}

#auth-status button {
  border: 0;
  border-radius: 3px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   LOGOUT BUTTON IN SYNC MODAL
══════════════════════════════════════════════════════ */

#auth-logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#auth-logout-btn:hover {
  background: #c82333;
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */

@media (min-width: 481px) {
  .auth-login-card {
    padding: 24px;
  }

  .auth-login-header h2 {
    font-size: 1.2rem;
  }

  #header #auth-status {
    display: flex;
    position: absolute;
    right: 14px;
  }

  #hamburger-menu {
    display: none;
  }

  #hamburger-menu #auth-status {
    display: flex;
    position: relative;
  }

}