/* ================================
   GLOBAL FIXES
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top left, #1f2a44, #0c1424 70%);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================================
   LOGIN CARD
================================ */
.login-container {
  background: #ffffff;
  width: 420px;
  padding: 45px 40px;
  border-radius: 14px;
  min-height: 420px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ================================
   HEADING
================================ */
h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #0c1424;
}

/* ================================
   LABELS
================================ */
label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* ================================
   INPUT FIELDS
================================ */
input {
  width: 100%;
  padding: 13px 14px;
  margin-top: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.2;
}

/* Remove browser default password eye */
input[type="password"]::-webkit-textfield-decoration-container {
  display: none;
}
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ================================
   PASSWORD WRAPPER
================================ */
.Loginpassword-wrapper {
  position: relative;
}

/* Space for eye icon */
.Loginpassword-wrapper input {
  padding-right: 44px;
}

/* ================================
   EYE ICON (FINAL FIXED VERSION)
================================ */
.toggle-Loginpassword {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  cursor: pointer;
  color: #6b7280;
  font-size: 16px;

  background: transparent;
  border: none;

  opacity: 0;
  visibility: hidden;          /* ✅ prevents hover flicker */
  transition: opacity 0.2s ease;
}

/* Show eye on focus or hover */
.Loginpassword-wrapper:focus-within .toggle-Loginpassword,
.Loginpassword-wrapper:hover .toggle-Loginpassword {
  opacity: 1;
  visibility: visible;
}

/* ================================
   SUBMIT BUTTON
================================ */
button[type="submit"] {
  width: 100%;
  padding: 14px;
  margin-top: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button[type="submit"]:hover {
  opacity: 0.95;
}

/* ================================
   FORGOT PASSWORD
================================ */
.forgot {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.forgot a {
  font-size: 14px;
  color: #2d6cdf;
  text-decoration: none;
}

.forgot a:hover {
  text-decoration: underline;
}

/* ================================
   MESSAGE AREA
================================ */
#message {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.error {
  color: #dc2626;
}

/* ================================
   HIDDEN UTILITY
================================ */
.hidden {
  display: none !important;
}
