/* Authentication UI styles */

.auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 0 auto;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.auth-form h2 {
  margin: 0 0 20px 0;
  color: #000000;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.5px;
}

.auth-form input {
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', inherit;
  transition: all 0.3s ease;
  background-color: white;
  color: #2d3748;
}

.auth-form input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.auth-form input::placeholder {
  color: #a0aec0;
}

.auth-form button {
  padding: 14px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  margin-top: 4px;
}

.auth-form button:hover {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.auth-form button:active {
  background-color: #3d8b40;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.auth-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-form p {
  margin: 8px 0 0 0;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.auth-form a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
}

.auth-form a:hover {
  color: #45a049;
  text-decoration: underline;
}

.auth-error {
  padding: 12px;
  background-color: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 6px;
  color: #c62828;
  font-size: 14px;
  margin-bottom: 12px;
}

.auth-success {
  padding: 12px;
  background-color: #e8f5e9;
  border: 1px solid #66bb6a;
  border-radius: 6px;
  color: #2e7d32;
  font-size: 14px;
  margin-bottom: 12px;
}

/* User info in top right corner for landing page */
#user-info-landing {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e2e8f0;
}

#user-info-landing span {
  color: #000000;
  font-size: 14px;
  font-weight: 500;
}

#logout-button {
  padding: 8px 20px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

#logout-button:hover {
  background-color: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(244, 67, 54, 0.4);
}

#logout-button:active {
  background-color: #c62828;
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(244, 67, 54, 0.3);
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide/show utility classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}
