:root {
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --bg: #F6F8F6;
  --white: #FFFFFF;
  --text: #1F2933;
  --text-mid: #3D4F5C;
  --text-muted: #6B7E8A;
  --green-primary: #059669;
  --green-mid: #047857;
  --green-accent: #10B981;
  --green-deep: #047857;
  --green-pale: #E8F5E9;
  --border: #DCE8DC;
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-sm: 0 2px 12px rgba(46, 125, 50, .08);
  --shadow-md: 0 8px 32px rgba(46, 125, 50, .12);
  --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #F6F8F6;
  color: #1F2933;
  line-height: 1.6;
  overflow-x: hidden;
}

.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 248, 246, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #DCE8DC;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(46, 125, 50, .08);
}

.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 900;
  color: #059669;
  cursor: pointer;
  letter-spacing: 0;
  user-select: none;
  animation: slideFromRight 1s ease-in-out;
}

.nav-logo span {
  color: #07cb8d;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  animation: slideFromTop 1s ease-in-out;
}

.nav-links a {
  text-decoration: none;
  color: #3D4F5C;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 50px;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: #059669;
  background: #E8F5E9;
}

.nav-cta {
  background: linear-gradient(135deg, #059669, #059669);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
  animation: slideFromLeft 1s ease-in-out;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #1F2933;
  border-radius: 2px;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid #DCE8DC;
  padding: 16px 5%;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(46, 125, 50, .12);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #3D4F5C;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}

.mobile-menu a:hover {
  background: #E8F5E9;
  color: #059669;
}


.hero {
  padding: 80px 5% 100px;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  background-image:
    linear-gradient(90deg, rgba(246, 248, 246, 0.2) 0%, rgba(246, 248, 246, 0) 100%),
    url("./back.png");
  background-size: 100% 100%, cover;
  background-position: center, right center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 187, 106, .15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 125, 50, .08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text {
  flex: 1;
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #059669, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: #6B7E8A;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.how-it-works-section {
  padding: 100px 5%;
  background: #FFFFFF;
}

.hiw-container {
  max-width: 1100px;
  margin: 0 auto;
}

.hiw-header {
  text-align: center;
  margin-bottom: 60px;
}

.hiw-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 4.5vw, 42px);
  color: #1F2933;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.hiw-header p {
  font-size: 18px;
  color: #6B7E8A;
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.hiw-card {
  background: #FFFFFF;
  border: 1px solid #DCE8DC;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.hiw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(46, 125, 50, .12);
}

.hiw-step {
  width: 44px;
  height: 44px;
  background: #059669;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hiw-card h3 {
  font-size: 20px;
  color: #1F2933;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.hiw-card p {
  color: #6B7E8A;
  font-size: 15px;
  line-height: 1.6;
}

.hiw-cta-container {
  text-align: center;
}

.hiw-btn {
  background: #059669;
  color: #FFFFFF;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.hiw-btn:hover {
  background: #388E3C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.2);
}


.auth-section {
  display: flex;
  min-height: calc(100vh - 68px);
  --theme-color: #108954;
  --theme-bg: linear-gradient(160deg, #108954 0%, #0B6B40 100%);
}

.auth-section.theme-restaurant {
  --theme-color: #E85D04;
  --theme-bg: linear-gradient(160deg, #E85D04 0%, #DC2F02 100%);
}

.auth-section.theme-volunteer {
  --theme-color: #0284C7;
  --theme-bg: linear-gradient(160deg, #0284C7 0%, #0369A1 100%);
}

.auth-sidebar {
  flex: 1;
  background: var(--theme-bg);
  color: #FFFFFF;
  padding: 60px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sidebar-content {
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
}

.sidebar-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-index {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 40px;
  cursor: pointer;
  display: inline-block;
  opacity: 0.9;
}

.back-index:hover {
  opacity: 1;
}

.auth-sidebar h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.auth-sidebar-desc {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 400px;
}

.auth-features {
  list-style: none;
  margin-bottom: 60px;
}

.auth-features li {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 500;
}

.auth-trusted {
  font-size: 14px;
  opacity: 0.8;
  margin-top: auto;
}

.auth-content {
  flex: 1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

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

.role-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 40px;
}

.role-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #6B7E8A;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.role-tab.active {
  background: #FFFFFF;
  color: var(--theme-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-panel h3 {
  font-size: 32px;
  color: #1F2933;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.auth-panel-text {
  color: #6B7E8A;
  margin-bottom: 32px;
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  font-size: 14px;
  font-weight: 600;
  color: #1F2933;
  margin-bottom: -8px;
}

.auth-form input {
  width: 100%;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: #1F2933;
  background: #FFFFFF;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.auth-form input:focus {
  border-color: #059669;
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.auth-submit {
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  padding: 14px;
  background: var(--theme-color);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.2s ease;
}

.auth-submit:hover {
  filter: brightness(0.9);
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #6B7E8A;
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--theme-color);
  font-weight: 600;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 0 4px;
}

.auth-switch button:hover {
  text-decoration: underline;
}

.auth-message {
  min-height: 24px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-color);
  text-align: center;
}

.auth-message.error {
  color: #C62828;
}

.toast {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 1400;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #059669, #059669);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 38px rgba(27, 94, 32, .24);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: linear-gradient(135deg, #C62828, #EF5350);
}



footer {
  background: #1F2933;
  color: #94A3B8;
  padding: 64px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  color: #059669;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: #64748B;
  max-width: 230px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #CBD5E1;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #64748B;
  text-decoration: none;
  font-size: 14px;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}

.footer-col a:hover {
  color: #059669;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid #334155;
  background: #1E293B;
  color: #CBD5E1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.newsletter-form input:focus {
  border-color: #059669;
}

.newsletter-form button {
  padding: 10px 16px;
  border-radius: 50px;
  background: #059669;
  color: #fff;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.newsletter-form button:hover {
  background: #059669;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  font-size: 15px;
  color: #64748B;
  border: 1px solid #334155;
}

.social-btn:hover {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #475569;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span {
  color: #059669;
  font-weight: 600;
}


@keyframes slideFromTop {
  from {
    transform: translateY(-100px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideFromLeft {
  from {
    transform: translateX(-100px);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    transform: translateX(200px);
  }

  to {
    transform: translateX(0);
  }
}


@media (max-width: 992px) {
  .hero {
    text-align: center;
    min-height: auto;
    padding: 60px 5%;
  }

  .auth-section {
    flex-direction: column;
  }

  .auth-sidebar {
    padding: 40px 5%;
  }

  .auth-content {
    padding: 40px 5%;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

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

  .nav-links,
  .navbar .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .toast {
    right: 16px;
    left: 16px;
    top: 80px;
    max-width: none;
    min-width: 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  section {
    padding: 60px 5%;
  }
}

@media (max-width: 768px) {
  .hiw-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .role-tab {
    font-size: 12px;
  }
}
