body {
  font-family: Arial, sans-serif;
  background-image: url('https://i.postimg.cc/0yZsTQcy/matteblack.png');
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  animation: slideIn 1s ease-in-out;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h2 {
  font-size: 32px;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  margin: 4px 0 0 0;   /* almost no extra space under REGISTER */
  text-align: center;
  animation: fadeIn 3s ease-in-out;
  letter-spacing: 2px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
  animation: fadeIn 2s ease-in-out;
}

input[type="text"],
input[type="password"] {
  width: calc(100% - 24px);
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  animation: fadeIn 2.5s ease-in-out;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 16px; /* prevents iOS auto-zoom on focus */
}

input[type="submit"] {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 30px;
  animation: fadeIn 2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#submit-btn {
  background-color: transparent;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: background-color 0.3s, transform 0.3s;
}

#submit-btn:hover {
  background-color: crimson;
  animation: pulse 1s infinite; /* Apply the Pulse Animation on hover */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.password-container {
  position: relative;
}

.forgot-password a {
  color: #ffffff;
  animation: fadeIn 2s ease-in-out;
  text-decoration: underline;
}

.eye-icon {
  position: absolute;
  top: 38%;
  right: 15px;
  transform: translate(0, -50%);
  cursor: pointer;
  padding: 11px;
  background-image: url('https://i.postimg.cc/jd2MK1qk/eye.png');
  animation: fadeIn 2s ease-in-out;
  background-size: cover;
}

.eye-icon.open {
  background-image: url('https://i.postimg.cc/ZKpZFCLc/eye-red.png');
}

/* Style for input fields on focus */
input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 15px #719ECE;
}

/* Mobile-only Adjustments: pull the form higher (closer to top) */
@media screen and (max-width: 800px) {
    body {
        align-items: flex-start;
        padding-top: 40px;
    }

    .container {
        margin-top: 90px;
        animation: slideIn 1s ease-in-out; /* keep the animation */
    }
}

/* ─────────────────────────────────────────────── */
/*           Compact Logo header styles           */
/* ─────────────────────────────────────────────── */

.logo-header {
  text-align: center;
  margin-bottom: 12px;  /* keeps header close to Username field */
}

.login-logo {
  display: block;
  width: 40px;
  height: auto;
  margin: 0 auto 4px auto;  /* still tight spacing between R and LOGIN */
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
  animation: fadeIn 2.2s ease-in-out;
}

/* FIX: Prevent desktop text enlargement / staying bigger on focus */
input[type="text"],
input[type="password"] {
  font-size: 16px !important;
  font-weight: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="text"]:focus-visible,
input[type="password"]:focus-visible {
  font-size: 16px !important;
  font-weight: normal !important;
  -webkit-text-size-adjust: none !important;
  text-size-adjust: none !important;
  transform: scale(1) !important;
  letter-spacing: normal !important;
  line-height: normal !important;
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.5);
}

/* Ensure placeholder matches */
input[type="text"]::placeholder,
input[type="password"]::placeholder {
  font-size: 16px;
  font-weight: normal;
  opacity: 0.7;
}

/* Confirm Login button — EXACT same behavior as #submit-btn */
#verify-btn {
  background-color: transparent;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: background-color 0.3s, transform 0.3s;
}

#verify-btn:hover,
#verify-btn:active,
#verify-btn:focus {
  background-color: crimson !important;
  animation: pulse 1s infinite;
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.8) !important;
  transform: scale(1.05);
}

/* ─────────────────────────────────────────────── */
/*           Back to login link — LEFT-ALIGNED     */
/* ─────────────────────────────────────────────── */

/* Override centering for the back link container */
#code-step > div[style*="text-align: center; margin-top: 14px;"] {
  text-align: left !important;  /* Force left alignment */
}

/* Style for the back link itself */
#back-btn {
  color: #aaa;
  font-size: 13px;
  text-decoration: underline;
  display: inline-block; /* prevents full-width stretch */
}
