* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --error: #ef4444;
  --success: #22c55e;
  --warning: #f97316;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease-in-out;
}

/* Hide navbar on scroll down (mobile only) */
@media (max-width: 768px) {
  .navbar {
    position: fixed !important;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }
  
  .navbar.navbar-hidden {
    transform: translateY(-100%) !important;
    box-shadow: none !important;
    pointer-events: none !important;
    visibility: hidden;
  }
  
  /* Minimize navbar on mobile */
  .nav-content {
    padding: 0.5rem 0 !important;
  }
  
  .logo h1 {
    font-size: 1.2rem !important;
    margin: 0 !important;
  }
  
  .logo p {
    display: none !important;
  }
  
  .nav-links {
    gap: 0.75rem !important;
    font-size: 0.85rem;
  }
  
  .nav-links a {
    padding: 0.4rem 0.6rem;
  }
  
  .btn-login,
  .btn-register {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
  }
  
  /* No body padding - content starts at top, navbar overlays it */
  body {
    padding-top: 0 !important;
  }
  
  /* Ensure smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* Ensure no underline on the logo link in any state */
.logo a,
.logo a:link,
.logo a:visited,
.logo a:hover,
.logo a:active,
.logo h1 a {
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  border-bottom: none !important;
  color: inherit !important;
  display: inline-block;
}

.logo h1 {
  text-decoration: none;
}

.logo p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Added active state styling for navigation links */
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.btn-login {
  color: var(--primary) !important;
}

.btn-register {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-register.active {
  opacity: 0.9;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gradient-blob {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob 8s infinite;
}

@keyframes blob {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* Features Section */
.features {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: #cbd5e1;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Authentication Pages */
.auth-page {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem;
}



.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.auth-card {
  background: var(--surface);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group input {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.input-error {
  border-color: var(--error);
}

/* Added password-input class for consistent sizing with other inputs */
.password-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  padding-right: 45px;
}

.password-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-input.input-error {
  border-color: var(--error);
}

/* Added warning message styling for name validation warnings */
.warning-message {
  color: var(--warning);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  /* Added eye icon styling */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--primary);
}

.eye-icon {
  transition: stroke 0.3s ease;
}

.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  width: 0;
  height: 4px;
  background-color: #ef4444;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.password-requirements {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.requirement {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirement.checked {
  color: var(--success);
}

.requirement.unchecked::before {
  content: "✗";
  color: var(--error);
}

.requirement.checked::before {
  content: "✓";
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Add user type selector styling */
.user-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.user-type-option {
  position: relative;
  cursor: pointer;
}

.user-type-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.user-type-option input:checked + .option-content {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: var(--primary);
}

.user-type-option input:checked + .option-content .option-text strong {
  color: white;
}

.user-type-option input:checked + .option-content .option-text small {
  color: rgba(255, 255, 255, 0.8);
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
}

.user-type-option:hover .option-content {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.option-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.option-text strong {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.option-text small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.success-message {
  background: var(--success);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.form-group.checkbox input {
  width: auto;
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.btn-social {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.btn-social:hover {
  background: var(--background);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-footer p {
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-side {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  padding: 3rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.side-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.side-benefits {
  list-style: none;
}

.side-benefits li {
  margin: 1rem 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Added real-time warning notification styling for name inputs */
.warning-notification {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Picture Circle Styles */
.profile-picture-circle {
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

.profile-picture-placeholder {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* Profile Form Styles */
.profile-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-section {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--background);
  color: var(--text);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border-color: var(--error);
}

.error-message {
  display: block;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.success-message {
  padding: 1rem;
  background: var(--success);
  color: white;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-section {
    padding: 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .auth-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Make user type selector single column on mobile */
  .user-type-selector {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .auth-side {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-content {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.4rem 0 !important;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo h1 {
    font-size: 1.1rem !important;
    margin: 0 !important;
    line-height: 1.2;
  }
  
  .logo p {
    display: none !important;
  }

  .nav-links {
    flex-direction: row;
    text-align: center;
    gap: 0.5rem !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.8rem;
  }
  
  .nav-links li {
    margin: 0;
  }
  
  .nav-links a {
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
  }
  
  .btn-login,
  .btn-register {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.8rem !important;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 1.75rem;
  }

  .form-group input {
    padding: 0.65rem;
    font-size: 16px;
  }
}


