/* ========================================
   RESPONSIVE SIGNUP PAGE STYLES
   Mobile-first approach with breakpoints:
   - Mobile: default (375px+)
   - Tablet: 600px+
   - Desktop: 1024px+
======================================== */

/* ========================================
   CSS RESET & BASE STYLES
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #000;
  background-color: #fff;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.home {
  display: none;
}
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.desktop-only {
  display: none !important;
}

.mobile-only {
  display: block;
}

/* Hide popup toggles */
.popup-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ========================================
   MAIN LAYOUT - MOBILE FIRST
======================================== */
.signup-page {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: #fff;
}

/* Desktop background (hidden on mobile) */
.desktop-background {
  display: none;
}
/* ========================================
   HEADER & NAVIGATION - MOBILE
======================================== */
.header {
  position: relative;
  z-index: 100;
  background: #fff;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: relative;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
  color: #1a1a1a;
}
.logo-icon {
  width: 30px;
  height: auto;
}
.brand-name {
  text-decoration: none;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  font-weight: 600;
}

/* Header actions (desktop notifications) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-pic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Mobile menu container */
.mobile-menu-container {
  position: relative;
}

.mobile-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.mobile-menu-trigger img {
  width: 24px;
  height: 24px;
}

/* Mobile menu popup (CSS-only toggle) */
.mobile-menu-popup {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

#mobile-menu-toggle:checked ~ .mobile-menu-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu {
  padding: 10px 0;
}
.menu-link {
  display: block;
  color: #00c503;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.03em;
  cursor: pointer;
  padding: 10px;
}
.menu-link:hover {
  background: #00ab00;
  color: #fff;
}

.menu-link.logout {
  color: #ff6b6b;
}
/* ========================================
   MAIN CONTENT - MOBILE
======================================== */
.main-content {
  padding: 40px 20px;
  max-width: 100%;
  margin: 0 auto;
}

.signup-section {
  width: 100%;
}

.page-title {
  font-size: 30px;
  font-weight: bold;
  line-height: 36px;
  letter-spacing: -0.03em;
  color: #003000;
  text-align: center;
  margin-bottom: 40px;
}

/* ========================================
   FORM STYLES - MOBILE
======================================== */
.form-container {
  width: 100%;
  max-width: 335px;
  margin: 0 auto;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

/* Avatar section */
.avatar-section {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.avatar-placeholder {
  position: relative;
  width: 100px;
  height: 100px;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  background-color: #d9d9d9;
  border-radius: 50%;
}

.avatar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #333;
  font-family: "SF Pro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.23px;
  line-height: 20px;
}

.avatar-text p {
  margin: 0;
}

/* Form groups */
.form-group {
  position: relative;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background-color: #fafafa;
  border: 1px solid #808080;
  border-radius: 25px;
  padding: 15px 20px;
  gap: 15px;
  transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #00e331;
  outline: 2px solid rgba(0, 227, 49, 0.1);
  outline-offset: 2px;
}

.input-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.input-wrapper input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.03em;
  color: #000;
}

.input-wrapper input::placeholder {
  color: #b3b3b3;
  font-weight: 400;
}

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

.password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.password-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
  outline: 2px solid #00e331;
  outline-offset: 2px;
}

.password-toggle img {
  width: 20px;
  height: 20px;
}

/* Checkbox group */
.checkbox-group {
  margin: 10px 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  color: #666;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid #00ff37;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.checkbox-wrapper input:checked + .checkbox-label .checkbox-custom::after {
  content: "✓";
  color: #00ff37;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-wrapper input:focus + .checkbox-label .checkbox-custom {
  outline: 2px solid #00e331;
  outline-offset: 2px;
}

.terms-text {
  font-weight: 500;
  letter-spacing: -0.03em;
}

.terms-link {
  color: #00e331;
  text-decoration: none;
}

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

/* Submit button */
.submit-btn {
  width: 100%;
  background-color: #009200;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background-color: #007a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 146, 0, 0.3);
}

.submit-btn:focus {
  outline: 2px solid #00e331;
  outline-offset: 2px;
}

.submit-btn:active {
  transform: translateY(0);
}

/* ========================================
   DIVIDER AND SOCIAL LOGIN - MOBILE
======================================== */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
}

.divider-line {
  flex: 1;
  height: 0.5px;
  background-color: rgba(0, 0, 0, 0.5);
}

.divider-text {
  color: #9e9e9e;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: -0.03em;
  line-height: 24px;
  padding: 0 10px;
}

/* Social login buttons */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 20px;
  border: 1px solid #999;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0);
  box-shadow: 0px 2px 4px #ccc;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: -0.03em;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.social-btn:focus {
  outline: 2px solid #00e331;
  outline-offset: 2px;
}

.social-btn img {
  width: 20px;
  height: 20px;
}

/* Login link */
.login-link {
  text-align: center;
  margin: 20px 0;
}

.login-link p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.03em;
  color: #666 !important;
  margin: 0;
}
.login-text {
  color: #00ab00;
  text-decoration: none;
  font-weight: 500;
}
.login-text:hover {
  text-decoration: underline;
}
/* ========================================
   NOTIFICATION POPUP - MOBILE
======================================== */
.notification-container {
  position: relative;
}

.notification-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-popup {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}
#notifications-toggle:checked ~ .notification-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.notification-list {
  padding: 15px;
}
.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.notification-item:last-child {
  border-bottom: none;
}
.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.notification-content {
  flex: 1;
}
.notification-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.notification-title strong {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.notification-action {
  background: #00c851;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}
.notification-message {
  font-size: 14px;
  color: #666;
  margin: 0 0 4px 0;
}
.notification-time {
  font-size: 12px;
  color: #999;
}
@media (max-width: 480px) {
  .home {
    display: block;
  }
}
/* ========================================
   TABLET STYLES - 600px and up
======================================== */
@media (min-width: 600px) {
  .brand-name {
    font-size: 20px;
  }
  .main-content {
    padding: 60px 40px;
    max-width: 600px;
  }
  .form-container {
    max-width: 450px;
  }
  .social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .facebook-btn {
    grid-column: span 2;
  }
  .footer-content {
    padding: 60px 40px;
  }
  .footer-sections {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .newsletter-section {
    grid-column: span 2;
  }
  .notification-popup {
    right: -40px;
  }
}
/* ========================================
   DESKTOP STYLES - 1024px and up
======================================== */
@media (min-width: 1024px) {
  /* Show desktop elements, hide mobile */
  .desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }

  /* Desktop background */
  .desktop-background {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
  }
  .desktop-background picture,
  .desktop-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
  }
  /* Desktop layout */
  .signup-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    max-width: none;
    width: 100%;
    background-image: url(../images/form_background.png);
    background-repeat: no-repeat;
    background-size: fit;
    background-position-x: 20%;
  }
  .signup-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    right: 20%;
  }

  /* Desktop navbar */
  .navbar {
    padding: 21px 133px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  .logo-icon {
    width: 56px;
  }
  .brand-name {
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
  }
  .header-actions {
    gap: 30px;
  }
  .profile-pic {
    width: 40px;
    height: 40px;
  }
  /* Hide mobile menu on desktop */
  .mobile-menu-container {
    display: none;
  }
  /* Desktop form container - completely transparent glass effect */
  .form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    max-width: 550px;
    position: relative;
    overflow: hidden;
  }
  /* Glass shine effect */
  .form-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
    animation: shimmer 3s ease-in-out infinite;
  }
  @keyframes shimmer {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }
  /* Glass reflection effect */
  .form-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 30px;
    pointer-events: none;
    z-index: -1;
  }
  .signup-form {
    gap: 25px;
    position: relative;
    z-index: 1;
  }
  /* Desktop form styling */
  .input-wrapper {
    background-color: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
  }
  .input-wrapper:focus-within {
    background-color: rgba(250, 250, 250, 0.95);
  }
  /* Desktop page title */
  .page-title {
    color: #003000;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  /* Desktop social buttons layout */
  .social-login {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .social-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(153, 153, 153, 0.3);
  }
  .social-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  }
  /* Desktop submit button */
  .submit-btn {
    background: rgba(0, 146, 0, 0.9);
    backdrop-filter: blur(10px);
  }
  .submit-btn:hover {
    background: rgba(0, 122, 0, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 146, 0, 0.4);
  }
  /* Desktop checkbox styling */
  .checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
  }

  .terms-link {
    color: #00ff37;
  }

  /* Desktop login link */
  .login-link p {
    color: rgba(255, 255, 255, 0.9);
  }

  /* Desktop divider */
  .divider-text {
    color: rgba(158, 158, 158, 0.9);
  }

  /* Desktop notification positioning */
  .notification-popup {
    right: 0;
    top: 120%;
  }
  /* ========================================
   LARGE DESKTOP STYLES - 1440px and up
======================================== */
  @media (min-width: 1440px) {
    .form-container {
      max-width: 600px;
      padding: 60px;
    }

    .signup-form {
      gap: 30px;
    }

    .page-title {
      font-size: 36px;
      line-height: 44px;
      margin-bottom: 40px;
    }
  }
}
