.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: transparent;
  padding: 20px 30px;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  max-width: 320px;
}

.logo-section {
  text-align: center;
  margin-bottom: 20px;
}

.logo-section img {
  max-width: 150px;
  height: auto;
}

.login-form {
  width: 100%;
}

/* Messages container */
.messages-container {
  margin-bottom: 15px;
}

/* ERROR MESSAGE - RED COLOR WITHOUT BACKGROUND */
.messages-container div[role="contentinfo"] {
  background: transparent !important;
  border: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.messages-container div[role="alert"] {
  color: #d32f2f !important;
  font-weight: 600;
  font-size: 13px;
  padding: 0;
}

.messages-container div[role="alert"] h2 {
  display: none;
}

/* Add red icon before error message */
.messages-container div[role="alert"]::before {
  content: "✕ ";
  color: #d32f2f;
  font-weight: bold;
  font-size: 16px;
}

/* HIDE: "You have no enough permission." text */
body > div:not(.login-wrapper):not(.messages-container):contains("You have no enough permission"),
body > div:contains("You have no enough permission") {
  display: none !important;
}

/* HIDE: All duplicate messages at the top */
body > div[data-drupal-messages],
body > div[role="contentinfo"],
body > div[role="contentinfo"] + div[role="contentinfo"],
body > .messages,
body > .messages + .messages {
  display: none !important;
}

/* HIDE: Any text "You have no enough permission" */
*:not(.login-wrapper):not(.login-card):not(.login-form):not(.messages-container) {
  /* Hide any element containing this text */
}

/* HIDE: Duplicate messages anywhere outside the container */
div[role="contentinfo"]:not(.messages-container div[role="contentinfo"]) {
  display: none !important;
}

/* HIDE: Duplicate messages within the container */
.messages-container div[role="contentinfo"] + div[role="contentinfo"] {
  display: none !important;
}

/* Form styling */
.login-form .form-item {
  margin-bottom: 12px;
}

.login-form label {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  border-color: #007bff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Error state for form fields - RED border */
.login-form .form-item.has-error input[type="email"],
.login-form .form-item.has-error input[type="password"] {
  border-color: #d32f2f;
  border-width: 2px;
}

.login-form .form-item.has-error input[type="email"]:focus,
.login-form .form-item.has-error input[type="password"]:focus {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.login-form .form-actions {
  margin-top: 12px;
}

.login-form .form-actions input[type="submit"] {
  width: auto;
  min-width: 100px;
  padding: 8px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  display: inline-block;
}

.login-form .form-actions input[type="submit"]:hover {
  background: #0056b3;
}

.login-form .form-actions input[type="submit"]:active {
  background: #004085;
}

/* Center the login button */
.login-form .form-actions {
  text-align: center;
}

/* Ensure only one password field appears */
.login-form .form-item-password {
  display: block !important;
}

.login-form .form-item-password + .form-item-password {
  display: none !important;
}

.page-title {display: none;}