/* Modern Design System - Nigerian Building Crack Detection */
:root {
  /* Color Palette */
  --primary-color: #467a39;
  --primary-hover: #639754;
  --primary-light: rgba(70, 122, 57, 0.3);

  --accent-color: #467a39;
  --text-primary: #1e2c17;
  --text-secondary: #515e4e;

  --bg-dark: #f8f7e9;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;

  --success: #397a44;
  --warning: #facc15;
  --danger: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #467a39, #2d4d25);
  --gradient-dark: linear-gradient(135deg, #fefcf9 0%, #f1f5f9 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 15px rgba(70, 122, 57, 0.2);

  /* Glassmorphism */
  --glass-bg: #fffff5;
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--accent-color);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-block {
  width: 100%;
}

/* Inputs */
.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Auth Pages Specific */
.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  background: linear-gradient(rgba(58, 104, 46, 0.9), rgba(97, 134, 85, 0.9));
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  color: white;
}

.auth-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block !important;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 1rem !important;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  filter: drop-shadow(0 0 8px rgba(70, 122, 57, 0.4));
}
