body {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-weight: 400;
  background-color: #eef2f8;
  background-image: linear-gradient(160deg, #eef2f8 0%, #dbe6f5 100%);
  color: #1a2233;
  overflow: hidden;
}

input {
  display: block;
  background-color: #f3f4f6; /* Light background (same as Tel. číslo/Email field) */
  color: #111; /* Text color */
  border: 1px solid #ccc; /* Light border for consistency */
  padding: 10px; /* Consistent padding */
  width: 100%; /* Full width */
  font-size: 16px; /* Same font size */
  border-radius: 6px; /* Rounded corners */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* The HTML form inputs carry Tailwind's dark bg-gray-700/border-gray-600
   classes left over from the old dark theme — force the light field style */
input.bg-gray-700 {
  background-color: #f3f4f6 !important;
  color: #111 !important;
}

input.border-gray-600 {
  border-color: #ccc !important;
}

input::placeholder {
  color: #6b7280; /* Placeholder color */
  font-family: 'Kanit', sans-serif;
  font-weight: 400;
}

button {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
}

#loginButton {
  position: relative;
  overflow: hidden;
}

#loginButton::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: rgba(255, 255, 255, 0.4);
  transition: left 0.4s ease-in-out;
}

#loginButton:hover::before {
  left: 100%;
}

.hidden {
  display: none;
}

form#emailPhoneForm {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Aluprint brand accent (secondary tab / PIN actions) */
.bg-orange-500 {
  background-color: #2F8FE0 !important;
  transition: background-color 0.4s ease-in-out;
}

.bg-orange-600 {
  background-color: #1D6FBD !important;
  transition: background-color 0.4s ease-in-out;
}

/* Aluprint brand primary (ID/Heslo tab, submit) */
.bg-green-500 {
  background-color: #1C4E9E !important;
  transition: background-color 0.4s ease-in-out;
}

.bg-green-600 {
  background-color: #163D7D !important;
  transition: background-color 0.4s ease-in-out;
}

.form-container {
  max-width: 600px;
  width: 100%;
  padding: 1.5rem 2rem;
  background-color: #ffffff;
  border-top: 4px solid #1C4E9E;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(28, 78, 158, 0.15);
  transition: height 0.4s ease-in-out, transform 0.4s ease-in-out;
  overflow: hidden;
  box-sizing: border-box;
}

#formHeading {
  color: #1C4E9E;
}

.brand-mark {
  display: block;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1C4E9E;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.form-container.show-green,
.form-container.show-orange {
  transform: scale(1.025);
}

#ppin {
  background-color: #f3f4f6; /* Ensure same background color */
  color: #111;
  padding: 10px; /* Match Tel. číslo/Email padding */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

#ppin.show {
  opacity: 1;
  transform: scale(1); /* Reset scale for consistent size */
}


#loginWithPpinButton {
  margin-top: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ppinContainer {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  padding: 8px 0; /* Add padding inside the container */
}

#ppinContainer.expanded {
  max-height: 150px;
  opacity: 1;
  visibility: visible;
}


#ppinContainer.error {
  border: 1px solid #ef4444; /* Highlight container in case of errors */
}

#emailSuccessMessage {
  animation: fadeIn 0.4s ease-in-out;
  color: #10B981;
  text-align: center;
  margin-top: 16px;
}

.text-green {
  color: #16a34a;
}

.forgot-link {
  color: #1C4E9E;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }
#errorMessagePpin {
  margin-bottom: 1rem; /* Existing margin-bottom */
  color: #ef4444; /* Tailwind's red-500 color */
  text-align: center; /* Center-align the text */
  padding-top: 0.5rem; /* Add padding on top for better spacing */
}

/* Darken muted helper text for readability on the white card */
.text-gray-400 {
  color: #4b5563 !important;
}

