/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f9f6f2;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Container styling */
.container {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 30px 20px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 40px;
  text-align: center;
}

/* Heading */
.container h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #5a3e2b;
}

/* Inputs */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fefefe;
}

/* Action text buttons */
.action-text {
  font-size: 1rem;
  color: #5a3e2b; /* choco base */
  cursor: pointer;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-block;
  text-align: center;
}

.action-text:hover {
  background-color: #5a3e2b; /* choco fill */
  color: #fff; /* white text on hover */
}

.choco-btn {
  background-color: #5a3e2b; /* rich choco tone */
  color: #fff; /* white text and icon */
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.choco-btn:hover {
  background-color: #3e2a1c; /* darker choco on hover */
  transform: scale(1.03);
}

/* Login status */
#loginStatus {
  font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 400px) {
  .container {
    padding: 20px 16px;
  }

  input[type="text"],
  input[type="password"] {
    font-size: 0.95rem;
  }

  .action-text {
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .main-wrapper {
    margin: 20px;
    padding: 16px;
  }

  section {
    margin-bottom: 20px;
  }

  section p {
    font-size: 1rem;
  }

  input[type="text"],
  input[type="number"],
  input[type="date"],
  button {
    font-size: 0.9rem;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .scroll-box {
    max-height: 150px;
    padding: 8px;
  }

  .home-btn {
    font-size: 1rem;
    padding: 8px 12px;
  }

  /* Flex containers: stack vertically on mobile */
  section[style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
}
