/* =============================================
   RetroPocket Mail — Custom Login Skin
   ============================================= */

/* --- Canvas arcade background --- */
#arcade-bg {
  position: fixed !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block !important;
}

/* --- Kill elastic white backgrounds on login --- */
body.task-login {
  background: #07070f !important;
  overflow: hidden;
}

body.task-login #layout {
  background: transparent !important;
  overflow: visible !important;
  position: static !important;
}

body.task-login #layout-content {
  background: transparent !important;
  display: block !important;
  text-align: center !important;
  position: static !important;
  min-height: 100vh !important;
  padding: 0 !important;
}

/* --- Centered glass card --- */
#rp-login-wrap {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 100 !important;
  background: rgba(7, 7, 15, 0.88) !important;
  border: 1px solid rgba(147, 51, 234, 0.4) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 40px 44px 32px !important;
  box-shadow:
    0 0 60px rgba(147, 51, 234, 0.3),
    0 0 100px rgba(6, 182, 212, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  width: 360px !important;
  max-width: calc(100vw - 40px) !important;
}

/* --- Logo --- */
#rp-logo-wrap {
  text-align: center !important;
  margin-bottom: 28px !important;
}

#rp-logo {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 10px !important;
  filter: drop-shadow(0 0 18px rgba(147, 51, 234, 0.65)) !important;
  animation: logoPulse 3s ease-in-out infinite !important;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(147, 51, 234, 0.5)); }
  50%       { filter: drop-shadow(0 0 26px rgba(236, 72, 153, 0.75)); }
}

#rp-tagline {
  font-family: 'Press Start 2P', 'Courier New', monospace !important;
  font-size: 8px !important;
  letter-spacing: 2px !important;
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin-top: 6px !important;
  text-transform: uppercase !important;
}

/* --- Kill elastic form positioning inside our card --- */
#rp-login-wrap #login-form {
  position: static !important;
  top: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

/* --- Form table layout --- */
#rp-login-wrap #login-form table {
  width: 100% !important;
}

#rp-login-wrap #login-form tr {
  display: block !important;
  margin-bottom: 14px !important;
}

#rp-login-wrap #login-form td {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}

/* --- Labels --- */
#rp-login-wrap label {
  color: #c4b5d9 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  display: block !important;
  margin-bottom: 6px !important;
}

/* --- Inputs --- */
#rp-login-wrap input[type="text"],
#rp-login-wrap input[type="password"],
#rp-login-wrap input[type="email"] {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(147, 51, 234, 0.35) !important;
  border-radius: 10px !important;
  color: #e2d9f3 !important;
  padding: 11px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

#rp-login-wrap input[type="text"]:focus,
#rp-login-wrap input[type="password"]:focus {
  border-color: rgba(147, 51, 234, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2), 0 0 14px rgba(147, 51, 234, 0.25) !important;
  outline: none !important;
  background: rgba(255,255,255,0.08) !important;
}

/* --- Submit button — target by ID for max specificity --- */
#rcmloginsubmit,
#rp-login-wrap .button.mainaction {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #0891b2 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  padding: 13px 28px !important;
  width: 100% !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s !important;
  box-shadow: 0 4px 20px rgba(123, 58, 237, 0.45) !important;
  display: block !important;
}

#rcmloginsubmit:hover,
#rp-login-wrap .button.mainaction:hover {
  filter: brightness(1.12) !important;
  box-shadow: 0 6px 30px rgba(123, 58, 237, 0.65), 0 0 20px rgba(219, 39, 119, 0.35) !important;
  transform: translateY(-1px) !important;
}

#rcmloginsubmit:active {
  transform: translateY(0) !important;
  filter: brightness(0.95) !important;
}

/* Remove elastic's icon before button */
#rcmloginsubmit:before { display: none !important; }

/* --- formbuttons container --- */
#rp-login-wrap .formbuttons {
  margin-top: 6px !important;
}

/* --- Login footer --- */
#rp-login-wrap #login-footer {
  color: rgba(196, 181, 217, 0.35) !important;
  font-size: 10px !important;
  margin-top: 14px !important;
  text-align: center !important;
}

/* --- Input icons (user / lock) --- */
#rp-login-wrap .input-group-text,
#rp-login-wrap .input-group .icon.input-group-text {
  background: transparent !important;
  border: none !important;
  border-right: 1px solid rgba(147, 51, 234, 0.3) !important;
  padding: 0 10px !important;
}

#rp-login-wrap .input-group {
  border: 1px solid rgba(147, 51, 234, 0.35) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.05) !important;
  overflow: hidden !important;
}

#rp-login-wrap .input-group input[type="text"],
#rp-login-wrap .input-group input[type="password"] {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#rp-login-wrap .input-group:focus-within {
  border-color: rgba(147, 51, 234, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2), 0 0 14px rgba(147, 51, 234, 0.25) !important;
}

#rp-login-wrap .input-group .icon:before {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 1rem !important;
}

/* --- Remember me checkbox --- */
#rp-login-wrap input[type="checkbox"] {
  accent-color: #9333ea !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #07070f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9333ea, #ec4899);
  border-radius: 3px;
}
