/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo img {
  width: 65%;
  min-width: 120px;
}

.navbar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.navbar nav a {
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.navbar nav a:hover {
  background-color: #f5f5f5;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.auth-buttons .login {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.auth-buttons .login:hover {
  background-color: #f5f5f5;
}

.btn {
  background: #f9a825;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: #f57f17;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
  background-color: #f5f5f5;
}

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

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
}

.mobile-nav-content a {
  text-decoration: none;
  color: #333;
  padding: 12px 16px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.mobile-nav-content a:hover {
  background-color: #f5f5f5;
}

.mobile-nav-content .btn {
  background: #f9a825;
  color: #fff;
  text-align: center;
  margin-top: 5px;
}

.btn.full {
  display: block;
  width: 100%;
  margin: 15px 0;
}

.btn.full.green {
  background: #2e7d32;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn.full.green:hover {
  background: #1b5e20;
}

/* Main Layout */
.container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 50px;
  gap: 50px;
  flex-wrap: wrap;
}

.illustration {
  position: relative;
  max-width: 400px;
}

.illustration img {
  width: 100%;
  border-radius: 50% / 30%;
  object-fit: cover;
}

/* Form */
.form-container {
  max-width: 400px;
  width: 100%;
}

.form-container h2 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
}

.form-container input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.3s;
  background: #fafafa;
}

.form-container input:focus {
  outline: none;
  border-color: #f9a825;
  background: #fff;
  box-shadow: 0 0 6px rgba(249, 168, 37, 0.4);
}

/* Social login buttons */
.social-login {
  margin-top: 15px;
  text-align: center;
}

.g-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 4px;
  background: #202124;
  color: #ffffff;
  font: 500 14px/1.1 Inter, Roboto, Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
  transition: all 0.2s ease;
  direction: ltr;
  justify-content: center;
  border: none;
}

.g-button:hover {
  background: #303134;
  box-shadow: 0 4px 8px rgba(0,0,0,.3);
  transform: translateY(-1px);
}

.g-button:active {
  background: #202124;
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.g-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}

.g-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.g-text {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: .1px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .g-button {
    background: #202124;
    color: #e9eaee;
    border-color: #3c4043;
    box-shadow: none;
  }
  .g-button:hover {
    background: #2a2b2f;
    border-color: #5f6368;
  }
  .g-button:active {
    background: #26272b;
  }
}

/* Separator */
.social-login::before {
  content: "or";
  display: block;
  color: #666;
  font-size: 14px;
  margin: 15px 0;
  position: relative;
}

.social-login::after {
  content: "";
  display: block;
  height: 1px;
  background: #eee;
  margin-top: -25px;
  margin-bottom: 25px;
  width: 100%;
  z-index: -1;
  position: relative;
}

.login-link {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

.login-link a {
  color: #f9a825;
  text-decoration: none;
  font-weight: 600;
}

/* Message styles */
.message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
}

.message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px 20px;
  border-top: 1px solid #eee;
  margin-top: 50px;
  background: #fafafa;
}

.footer nav {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer nav a {
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.footer nav a:hover {
  background-color: #f0f0f0;
}

.footer .brand {
  color: #f57f17;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .brand:hover {
  color: #f9a825;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Language Select */
.language-select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.language-select:hover {
  border-color: #f9a825;
}

.language-select:focus {
  outline: none;
  border-color: #f9a825;
  box-shadow: 0 0 6px rgba(249, 168, 37, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .navbar {
    padding: 15px 30px;
  }
  
  .navbar nav {
    gap: 10px;
  }
  
  .navbar nav a {
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }
  
  .navbar {
    padding: 15px 20px;
  }
  
  .navbar > nav {
    display: none !important;
  }
  
  .navbar > .auth-buttons {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .illustration {
    max-width: 100%;
  }
  
  .form-container {
    padding: 0 20px;
  }
  
  .footer nav {
    gap: 15px;
  }
  
  .footer nav a {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  .footer-bottom {
    gap: 15px;
  }
  
  .language-select {
    margin: 10px 0 0 0;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
  }
  
  .logo img {
    width: 80%;
    min-width: 100px;
  }
  
  .container {
    padding: 15px;
  }
  
  .form-container {
    padding: 0 10px;
  }
  
  .footer {
    padding: 20px 15px 15px;
  }
  
  .footer nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}
