body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff7f0;
  color: #000;
}

.container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  font-size: 3rem;
  font-weight: 900;
  background: #ff7b00;
  color: #fff;
  padding: 20px;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  display: inline-block;
  user-select: none;
}

.feature-box {
  margin-top: 2rem;
  padding: 2rem;
  background-color: #ffffff;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  max-width: 500px;
  transition: transform 0.2s ease-in-out;
  cursor: default;
  user-select: none;
}

.feature-box:hover {
  transform: scale(1.03);
}

.nb-feature {
  padding: 4rem 2rem;
  border: 4px solid black;
  box-shadow: 8px 8px 0 black;
  margin: 2rem 0;
  position: relative;
  background: #fff;
}

.nb-1 {
  background: #ffeadb;
}

.nb-2 {
  background: #d0f4de;
}

.nb-3 {
  background: #cde7f0;
}

.nb-4 {
  background: #fcefcf;
}

.nb-5 {
  background: #f3d5ff;
}

.nb-content {
  max-width: 900px;
  margin: auto;
  text-align: left;
  padding: 2rem;
  border: 3px solid black;
  background: #fff;
  box-shadow: 6px 6px 0 black;
  transform: rotate(-1deg);
}

.nb-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #111;
}

.nb-content p {
  font-size: 1.3rem;
  color: #333;
}

.highlight {
  color: #ff7b00;
  font-weight: 800;
  font-size: 2.8rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.neubutton {
  background-color: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
  user-select: none;
}

.neubutton:hover {
  transform: translateY(-2px);
  color: #fff;
  background-color: #ff7b00;
}

.intro-text {
  margin-top: 2rem;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-text h2 {
  user-select: none;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.intro-text p {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 0;
  user-select: none;
}

.intro-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  min-height: auto;
}

.intro-image img {
  width: 280px;
  height: auto;
  border: 3px solid black;
  box-shadow: 6px 6px 0 black;
  background: #fff8ef;
  padding: 0.8rem;
  user-select: none;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .intro-wrapper {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .intro-image img {
    width: 90%;
    margin-top: 1rem;
  }

  .nb-content {
    transform: none;
    padding: 1.5rem;
  }

  .nb-content h2 {
    font-size: 2rem;
  }

  .nb-content p {
    font-size: 1.1rem;
  }
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  user-select: none;
}

.modal-content {
  background: #fff8ef;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  max-width: 420px;
  width: 90%;
  padding: 2.4rem 2rem 2rem;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  color: #000;
  user-select: text;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
  color: #ff7b00; 
  transition: color 0.2s ease;
  user-select: none;
}

.modal-close-btn:hover {
  color: #cc6500;
}

.modal-content h2 {
  margin: 0 0 1.2rem 0;
  font-weight: 900;
  font-size: 2.2rem;
  color: #ff7b00;
  user-select: none;
}

#auth-form-container {
  overflow-y: auto;
  max-height: 80vh;
  padding-right: 8px;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

#auth-form > * {
  width: 100%;
  box-sizing: border-box;
}

#auth-form input[type="email"],
#auth-form input[type="password"],
#auth-form input[type="text"],
#auth-form input[type="date"],
#auth-form select,
#auth-form textarea {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 3px solid #000;
  background: #fff8ef;
  box-shadow: 6px 6px 0 #000;
  font-family: 'Segoe UI', sans-serif;
  resize: vertical;
  transition: border-color 0.2s ease;
}

#auth-form input:focus,
#auth-form select:focus,
#auth-form textarea:focus {
  outline: none;
  border-color: #ff7b00;
  box-shadow: 0 0 6px #ff7b00 inset;
  background: #fff7e6;
}

#auth-form textarea {
  min-height: 60px;
  font-family: 'Segoe UI', sans-serif;
}

#submit-btn {
  background-color: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 0.8rem 1.4rem;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-in-out;
  color: #000;
}

#submit-btn:hover {
  background-color: #ff7b00;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border: 3px solid #000;
  background-color: #fff;
  box-shadow: 6px 6px 0 #000;
  cursor: pointer;
  font-weight: 900;
  font-family: 'Segoe UI', sans-serif;
  user-select: none;
  transition: all 0.15s ease-in-out;
  color: #000;
  width: 100%;
  font-size: 1.1rem;
}

.google-btn:hover {
  background-color: #ff7b00;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}

.google-logo {
  width: 20px;
  height: 20px;
  user-select: none;
}

#toggle-auth-mode {
  background: none;
  border: none;
  font-weight: 900;
  color: #ff7b00;
  cursor: pointer;
  padding: 0;
  user-select: none;
  font-family: 'Segoe UI', sans-serif;
  transition: color 0.2s ease;
}

#toggle-auth-mode:hover {
  color: #cc6500;
  text-decoration: underline;
}

#auth-message {
  font-weight: 700;
  color: #d10000;
  margin-top: 1rem;
  min-height: 1.3em;
  user-select: none;
}

#extra-register-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

#extra-register-fields input,
#extra-register-fields select,
#extra-register-fields textarea {
  width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.5rem;
  border: 2px solid #000;
  background: #fff8ef;
  transition: border-color 0.3s ease;
}

#extra-register-fields textarea {
  min-height: 60px;
}

#avatar-upload-container {
  display: flex;
  justify-content: center;
  align-items: anchor-center;
  margin-bottom: 1rem;
}

#avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f2f2f2;
  border: 2px dashed #ccc;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
  margin-right: 8px;
}

#avatar-preview:hover {
  border-color: #ff7b00;
}

#avatar-preview img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.3rem;
  pointer-events: none;
}

#avatar-preview.uploaded img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  margin: 0;
  object-fit: cover;
}

#avatar-text {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.2;
  pointer-events: none;
}

#avatar-preview.uploaded #avatar-text {
  display: none;
}

#default-avatars {
  margin-top: 0.75rem;
  text-align: center;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  justify-content: center;
  gap: 10px;
  margin-top: 0.5rem;
}

.avatar-options img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.avatar-options img.selected {
  border-color: #ff7b00;
}

.snugz-cta {
  background: linear-gradient(135deg, #fff5e1, #ffe2ec);
  padding: 5rem 2rem;
  margin-top: 4rem;
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
  position: relative;
  overflow: hidden;
}

.snugz-cta-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.snugz-cta-text {
  flex: 1;
  min-width: 300px;
}

.snugz-cta-text h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #000;
}

.snugz-cta-text p {
  font-size: 1.4rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 500px;
}

.snugz-cta-btn {
  background-color: #ff7b00;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.snugz-cta-btn:hover {
  background-color: #e96a00;
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}

.snugz-cta-btn-bottom {
  background-color: #ff7b00;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.snugz-cta-btn-bottom:hover {
  background-color: #e96a00;
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #000;
}

.snugz-cta-art {
  flex: 1;
  text-align: center;
  min-width: 280px;
}

.snugz-cta-art img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #000;
  background-color: #fff7f0;
}

footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 1rem 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #000;
  border-top: 3px solid #000;
  box-shadow: inset 0 6px 0 #000;
  background: #fff2e0;
  user-select: none;
}

.footer-link {
  color: #ff7b00;
  text-decoration: none;
  font-weight: 900;
}

.footer-link:hover,
.footer-link:focus {
  text-decoration: underline;
}

footer p {
  margin-top: 0.5rem;
  font-weight: normal;
  font-size: 0.9rem;
  color: #333;
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 95vw;
    padding: 1.6rem 1.4rem;
  }

  #submit-btn, .google-btn {
    font-size: 1rem;
  }

  .modal-content h2 {
    font-size: 1.6rem;
  }

  footer {
    font-size: 0.7rem;
    padding: 1.5rem 1rem 1rem;
  }

  footer h3, a {
    font-size: 0.8rem;
    color: #333;
  }

  footer p {
    margin-top: 1rem;
    font-weight: normal;
    font-size: 0.5rem;
    color: #333;
  }
}
