body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header.sticky-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  justify-content: center; 
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 20px;
  display: flex;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.header-logo img {
  max-height: 45px;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Sign-in box styling */
.sign-in-box {
  width: 100%;
  max-width: 360px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #ccc; /* added border line */
}

.sign-in-box h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

/* Phone wrapper for country code */
.phone-wrapper {
  position: relative;
  width: 100%;
}

#country-code {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
  display: none; /* Show only when numbers typed, handled by JS */
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.phone-wrapper input[type="text"] {
  width: 100%;
  padding: 10px 12px 10px 60px; /* padding-left to reserve space for country code */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.sign-in-box input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Fix shrinking issue when toggling password visibility */
#password {
  width: 100%;
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: none;
}

/* Labels for checkboxes */
.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.checkbox-label input {
  margin-right: 8px;
}

/* Buttons */
.sign-in-box button {
  background-color: #0092FF;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.sign-in-box button:hover {
  background-color: #0056b3;
}

/* Links */
.forgot-password {
  font-size: 14px;
  color: #0092FF;
  text-decoration: none;
  margin-top: 5px;
}

.forgot-password:hover {
  color: #0056b3;
}

/* Legal notice */
.legal-notice {
  font-size: 12px;
  text-align: center;
  margin-top: 16px;
  color: #555;
}

.legal-notice a {
  color: #0092FF;
  text-decoration: none;
}

.legal-notice a:hover {
  text-decoration: underline;
}

/* Sign up call to action */
.sign-up-cta {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.sign-up-cta span {
  color: red;
}

.create-account-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  background-color: #0092FF;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}

.create-account-btn:hover {
  background-color: #0056b3;
}

/* Need help link */
.need-help {
  text-align: center;
  margin-top: 20px;
}

.need-help a {
  color: #0092FF;
  font-size: 14px;
  text-decoration: none;
}

.need-help a:hover {
  text-decoration: underline;
}

/* User summary and change button */
#user-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  background-color: #f3f3f3;
  padding: 8px 12px;
  border-radius: 8px;
}

#changeUser.change-btn {
  background: none;
  border: none;
  color: #0092FF;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

#changeUser:hover {
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .sign-in-box {
    box-shadow: none;
    border: none;
    padding: 16px;
    background-color: transparent;
  }

  .container {
    padding: 10px;
  }
}

