@import url('https://fonts.adobe.com/fonts/organetto-variable#fonts-section');
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "organetto-variable", sans-serif;
  background-color: #F6F1EB;
  color: #333;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  position: absolute;
  display: flex;
  background-color: #F6F1EB;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  z-index: 100;
  width: 100vw;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
  max-width: 1460px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  position: relative;
}

#main-logo-link > img {
  height: 72px;
  transition: height 0.3s ease;
}

.nav-left {
  display: flex;
  list-style: none;
  gap: 50px;
  align-items: center;
}

.nav-right {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.nav-right img {
  height: 55px;
  transition: height 0.3s ease;
}

.nav-left li a,
.nav-right li a {
  text-decoration: none;
  color: #3F5566;
  font-weight: 900;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-left li a:hover,
.nav-right li a:hover {
  color: #2c3f4e;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(63, 85, 102, 0.1);
}

.mobile-menu-toggle:focus {
  outline: 2px solid #577C8E;
  outline-offset: 2px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #3F5566;
  margin: 3px 0;
  transition: 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}


main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}
.login-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 150px;

  gap: 20px;
}
.form-header {
  display: flex;
  justify-content: center;
  gap: 25px;
}
.form-header-link {
  color: #2F4157;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}
.active {
  color: #577C8E;
}
.form-wrapper {
  background-color: #fff;
  padding: 50px 80px;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.form-name {
  font-size: 20px;
  color: #577C8E;
  width: 400px;
  margin-bottom: 40px;
}
form.main-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  gap: 10px;
}

.form-inputs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.input-form-label {
  padding: 15px 30px;
  font-weight: 800;
  color: #577C8E;
}

.input {
  padding: 15px 30px;
  background-color: #F4EFEB;
  border: none;
  border-radius: 4px;

  font-weight: 800;
  text-align: center;
  color: #3F5566;
}
.input::placeholder {
  font-family: "organetto-variable", sans-serif !important;
  font-weight: 800;
  text-align: center;
  color: #577C8E80;
}

.forgot-password {
  font-size: 13px;
  font-weight: 600;
  color: #577C8E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #214050;
}

.btn-submit {
  background-color: #577C8E;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  
  width: 200px;
  padding: 14px;
  border: none;
  border-radius: 4px;

  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background-color: #214050;
}

.section {
  display: flex;
  padding: 0 240px;
  width: 100vw !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
}
.first-section {
  padding-top: 140px;
}
.last-section {
  padding-bottom: 50px;
}

#hero-section {
  min-height: 100vh;
  background: url('../img/index-background.png') center center no-repeat;
  background-size: cover;
}

.hero-logo {
  width: 280px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 22px;
  font-weight: 650;
  color: #2F4157;
  max-width: 900px;
  margin-bottom: 30px;
}

.hero-tagline span {
  color: #577C8E;
  font-weight: 650;
}

.button {
  font-size: 19px;
  font-weight: 800;
  padding: 16px 50px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.install-btn {
  background-color: #F4EFEB;
  color: #577C8E;
}
.install-btn:hover {
  background-color: #ddd7d3;
}

.install-btn-dark {
  background-color: #577C8E;
  color: #ffffff;
}
.install-btn-dark:hover {
  background-color: #446575
}

#info-section {
  flex-direction: row;
  justify-content: space-between;
  max-width: 1460px;
}

.program-logo {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  width: 30%;
}

.program-logo img {
  width: 250px;
}

.program-logo p {
  font-size: 18px;
  font-weight: 550;
}

.program-version {
  text-align: start;
  color: #3F5566;
  font-size: 16px;
}

.program-description {
  width: 60%;
  color: #3F5566;
  text-align: start;
}
.section-vertical-start {
  align-items: start;
  justify-content: start;
  background-color: #F6F1EB;
  padding-top: 200px;
  max-width: 1460px;
  gap: 15px;
}

.section-left {
  text-align: left;
}

.section-title {
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #2F4157;
}

.section-text {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  color: #000000;
}

#curator-section {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  max-width: 1460px;
}

.curator-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
}

.curator-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curator-info {
  max-width: 600px;
  text-align: start;
}

.curator-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #3F5566;
}

.curator-text {
  font-size: 16px;
  line-height: 1.6;
  color: #3F5566;
}

/* Footer Styles */
footer {
  background-color: #2F4157;
  padding: 40px 120px;
  color: #E0E1DF;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  list-style: none;
}
.footer-content li a {
  text-decoration: none;
  color: #E0E1DF;
  font-size: 18px;
  transition: color 0.3s ease;
}
.footer-nav li a:hover {
  color: #666;
}

/* This is still here for backward compatibility with other pages */
.dark-footer {
  background-color: #2F4157;
  padding: 20px 120px;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto 20px;
}

.footer-nav a {
  color: #E0E1DF;
  text-decoration: none;
  font-size: 16px;
}

.copyright {
  text-align: center;
  color: #E0E1DF;
  font-size: 14px;
}

/* Message styling for success and error messages */
.message {
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

.message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

/* Responsive Design */
/* Tablet styles */
@media screen and (max-width: 1024px) {
  header {
    padding: 15px 20px;
  }
  
  .nav-left {
    gap: 30px;
  }
  
  .nav-right {
    gap: 20px;
  }
  
  #main-logo-link > img {
    height: 60px;
  }
  
  .nav-right img {
    height: 45px;
  }
  
  .navbar {
    font-size: 16px;
  }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  header {
    padding: 10px 15px;
    position: fixed;
    top: 0;
    background-color: rgba(246, 241, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
  }
  
  .navbar {
    font-size: 14px;
  }
  
  #main-logo-link > img {
    height: 50px;
  }
  
  .nav-left,
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #F6F1EB;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    gap: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
  }
  .nav-right  {
    top: 300%;
  }
  
  .nav-left.active,
  .nav-right.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-left {
    order: 1;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 10px;
  }
  
  .nav-right {
    order: 2;
    padding-top: 10px;
  }
  
  .nav-right img {
    height: 40px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar.mobile-open .nav-left,
  .navbar.mobile-open .nav-right {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Smooth body scroll prevention */
  body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  
  /* Adjust main content for fixed header */
  main {
    margin-top: 80px;
  }
  
  .login-section {
    margin-top: 50px;
  }
}

/* Small mobile styles */
@media screen and (max-width: 480px) {
  header {
    padding: 8px 12px;
  }
  
  #main-logo-link > img {
    height: 40px;
  }
  
  .navbar {
    font-size: 13px;
  }
  
  .nav-left,
  .nav-right {
    padding: 15px;
  }
  
  .nav-right img {
    height: 35px;
  }
  
  main {
    margin-top: 70px;
  }
  
  .section {
    padding: 0 15px;
  }
}

/* Landscape mobile styles */
@media screen and (max-width: 768px) and (orientation: landscape) {
  header {
    padding: 5px 15px;
  }
  
  #main-logo-link > img {
    height: 35px;
  }
  
  main {
    margin-top: 60px;
  }
}

/* Respect user's preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle span,
  .nav-left,
  .nav-right {
    transition: none;
  }
  
  .mobile-menu-toggle.active span:nth-child(1),
  .mobile-menu-toggle.active span:nth-child(3) {
    transition: none;
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    transition: none;
  }
}