/* ================================
   GLOBAL FIXES
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ================================
   PAGE BACKGROUND
================================ */
body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  margin: 0;

  display: flex;
  justify-content: center;
  align-items: center;
 

  background: linear-gradient(135deg, #0f172a, #1e293b);
  /*background: linear-gradient(
    135deg,
    #2a1a0f,
    #120a05

  );*/
}

/* ================================
   MAIN CARD (WIDER + BALANCED)
================================ */
.activation-container {
   background: #ffffff;
  width: 420px;              /* smaller width */
  padding: 30px 32px;        /* smaller height */
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ================================
   HEADING
================================ */
.activation-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1f2937;
}

/* ================================
   FORM LAYOUT
================================ */
form > div {
  margin-bottom: 20px;
}

/* ================================
   LABELS
================================ */
label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* ================================
   INPUT FIELDS (UNIFORM SIZE)
================================ */
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 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
================================ */
.password-wrapper {
  position: relative;
}

/* Space for custom eye icon */
.password-wrapper input {
  padding-right: 44px;
}

/* ================================
   EYE ICON
================================ */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  cursor: pointer;
  color: #6b7280;
  font-size: 16px;

  background: transparent;
  border: none;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Show eye only when interacting */
.password-wrapper:focus-within .toggle-password,
.password-wrapper:hover .toggle-password {
  opacity: 1;
  pointer-events: auto;
}

.toggle-password:hover {
  color: #111827;
}

/* ================================
   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;
}

/* ================================
   INLINE MESSAGE
================================ */
#message {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.error {
  color: #dc2626;
}

/* ================================
   PASSWORD HINT
================================ */
.password-hint {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;

  padding: 12px 14px;
  margin-top: 10px;

  font-size: 12px;
  color: #374151;
}

.password-hint ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.password-hint li {
  list-style: none;
  margin-bottom: 6px;
  color: #6b7280;
}

.password-hint li.valid {
  color: #16a34a;
}

/* ================================
   POPUP OVERLAY (FIXED CENTER)
================================ */
.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.6);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* ================================
   POPUP BOX (CENTERED)
================================ */
.popup {
  background: #ffffff;

  width: 100%;
  max-width: 360px;

  padding: 28px 30px;
  border-radius: 12px;

  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup.success p {
  color: #16a34a;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 22px;
}

.popup button {
  padding: 10px 28px;
  border: none;
  border-radius: 8px;

  background: #2563eb;
  color: #ffffff;

  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* ================================
   HIDDEN
================================ */
.hidden {
  display: none !important;
}

.redirect-link {
  color: blue;
  text-decoration: underline;
  font-weight: 600;
}