/* css/components.css */

/* Navbar */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo img { height: 40px; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--gray);
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-login {
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-login:hover { background: var(--primary-dark); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero-content { max-width: 700px; margin: 0 auto; }

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #fff;
  color: var(--primary) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.6);
  font-weight: 600;
  transition: background 0.2s;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Features */
.features { background: var(--light); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--gray); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Map */
.map-container {
  max-width: 1000px;
  margin: 2rem auto 0;
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Stats */
.stats {
  background: var(--primary);
  color: #fff;
  padding: 3rem 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* About */
.about {
  background: #fff;
  text-align: center;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.about p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: #fff;
  padding: 3rem 1.5rem 1rem;
}

.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img { height: 50px; margin-bottom: 0.5rem; }
.footer-logo p { font-size: 0.9rem; opacity: 0.8; }

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-contact p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Brand Section */
.login-brand {
  text-align: center;
  color: #fff;
}

.brand-logo {
  height: 70px;
  width: auto;
  margin: 0 auto 1rem;
  background: #fff;
  border-radius: 50%;
  padding: 0.25rem;
}

.login-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.brand-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Login Card */
.login-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1);
  width: 100%;
  overflow: hidden;
}

.login-header {
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.login-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.login-header .text-muted {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Form */
.login-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-error {
  display: block;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  min-height: 1rem;
}

/* Password Toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  color: var(--gray);
}

.password-toggle:hover {
  color: var(--dark);
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.forgot-link {
  color: var(--primary);
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Alert */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
}

/* Button */
.btn-block {
  width: 100%;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.login-footer {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.login-footer p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

.login-footer a {
  color: var(--primary);
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Security Notice */
.login-notice {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  max-width: 360px;
}

/* Responsive */
@media (max-width: 480px) {
  .login-brand h1 {
    font-size: 1.25rem;
  }
  .brand-subtitle {
    font-size: 0.85rem;
  }
  .login-card {
    border-radius: 12px;
  }
}
