:root {
  /* Core colors */
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --color-primary: #ffcc00;
  --color-primary-dark: #e6b800;
  --color-primary-hover: #ffdc40;
  --color-text: #f5f5f5;
  --color-text-secondary: #a0a0a0;
  --color-border: #333333;
  --color-error: #ff4d4d;
  
  /* Shadows and effects */
  --border-radius: 8px;
  --shadow-default: 0 10px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.5);
  --blur-amount: 10px;
  --transition-speed: 0.2s;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dark gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(30, 30, 30, 0.7) 0%,
    rgba(18, 18, 18, 1) 100%
  );
  z-index: -1;
}

/* Header styles */
.header {
  position: sticky;
  top: 0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  background-color: rgba(18, 18, 18, 0.9);
  border-bottom: 1px solid rgba(255, 204, 0, 0.1);
  z-index: 100;
}

.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform var(--transition-speed) ease;
}

.header .logo:hover {
  transform: translateY(-2px);
}

.logo-image {
  height: 32px;
  width: auto;
}

/* Main content area */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Auth container (login/signup form) */
.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-default);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.auth-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-primary));
}

.auth-header {
  margin-bottom: 2rem;
  text-align: center;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.auth-header h1 span {
  color: var(--color-primary);
}

.auth-header p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Service notice */
.service-notice {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 204, 0, 0.08);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  border-left: 3px solid var(--color-primary);
}

.service-notice strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
}

/* Button styles with smooth traveling line animation */
.form-group button {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--color-primary);
  color: #121212;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  position: relative;
  overflow: visible;
}

/* Button hover state */
.form-group button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.form-group button:active {
  transform: translateY(0);
}

/* Create the traveling line segment */
.form-group button::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* Apply the animation only on hover */
.form-group button:hover::after {
  opacity: 1;
  animation: simple-trace 3s infinite;
}

/* Simple animation that traces around the button */
@keyframes simple-trace {
  /* Start hidden */
  0% {
    opacity: 0;
    top: -1px;
    left: -20px;
  }
  
  /* Fade in & top edge start */
  5% {
    opacity: 1;
    top: -1px;
    left: 0;
    width: 20px;
    height: 2px;
  }
  
  /* Top edge moving right */
  25% {
    top: -1px;
    left: calc(100% - 20px);
    width: 20px;
    height: 2px;
  }
  
  /* Right edge moving down */
  30% {
    top: 0;
    left: calc(100% + 1px);
    width: 2px;
    height: 20px;
  }
  
  /* Right edge continuing down */
  45% {
    top: calc(100% - 20px);
    left: calc(100% + 1px);
    width: 2px;
    height: 20px;
  }
  
  /* Bottom edge moving left */
  50% {
    top: calc(100% + 1px);
    left: calc(100% - 20px);
    width: 20px;
    height: 2px;
  }
  
  /* Bottom edge continuing left */
  65% {
    top: calc(100% + 1px);
    left: 0;
    width: 20px;
    height: 2px;
  }
  
  /* Left edge moving up */
  70% {
    top: calc(100% - 20px);
    left: -1px;
    width: 2px;
    height: 20px;
  }
  
  /* Left edge continuing up */
  85% {
    top: 0;
    left: -1px;
    width: 2px;
    height: 20px;
  }
  
  /* Fade out */
  90% {
    opacity: 1;
    top: -1px;
    left: 0;
    width: 0;
    height: 0;
  }
  
  /* Invisible wait period */
  100% {
    opacity: 0;
  }
}

/* Ensure button content is above effects */
.form-group button span {
  position: relative;
  z-index: 2;
}

.form-footer {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Link underline animation restored */
.form-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.form-footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.form-footer a:hover {
  color: var(--color-primary-hover);
}

.form-footer a:hover::after {
  width: 100%;
}

/* Error message */
.error-message {
  background-color: rgba(255, 77, 77, 0.1);
  border-left: 3px solid var(--color-error);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-error);
  font-size: 0.9rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  background-color: rgba(18, 18, 18, 0.9);
  border-top: 1px solid rgba(255, 204, 0, 0.1);
  margin-top: auto;
}

.footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer .footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  position: relative;
}

.footer .footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.footer .footer-links a:hover {
  color: var(--color-primary);
}

.footer .footer-links a:hover::after {
  width: 100%;
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1100px;
  margin: 2rem auto;
  width: 100%;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logout-btn {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 77, 77, 0.1);
  color: var(--color-error);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-speed) ease;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.logout-btn:hover {
  background-color: rgba(255, 77, 77, 0.2);
  transform: translateY(-2px);
}

section {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-default);
  transition: transform var(--transition-speed) ease, 
              box-shadow var(--transition-speed) ease;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

section h2 {
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.profile-details p {
  margin-bottom: 0.75rem;
}

.profile-details strong {
  color: var(--color-primary);
  font-weight: 500;
}

/* Services section */
.services-list {
  padding: 1rem 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.empty-state img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  color: var(--color-text-secondary);
}

/* Responsive styles */
@media (max-width: 768px) {
  .header, .footer {
    padding: 1.25rem;
  }
  
  .main-content {
    padding: 1.25rem;
  }
  
  .auth-container {
    padding: 1.75rem;
  }
  
  .dashboard-container {
    margin: 1rem auto;
  }
  
  .footer .footer-links {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .auth-container {
    padding: 1.5rem;
  }
  
  .footer .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
