:root {
  --brand-blue: #0073aa;
  --brand-wine: #7a003c;
  --brand-black: #000000;
}

/* =============================
   LOGIN CONTAINER
   ============================= */
.ulp-login-wrap {
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 20px;
  border-radius: 10px;
  background: #ffffff !important; /* permanently light mode */
  color: #000000 !important;
  transition: background 0.3s, color 0.3s;
  max-width: 360px;
  margin: 20px auto;
}

/* =============================
   INPUT FIELDS
   ============================= */
.ulp-login-wrap label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.ulp-login-wrap input[type="text"],
.ulp-login-wrap input[type="password"],
.ulp-login-wrap input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #ffffff;
  color: #000000;
  transition: border 0.2s, box-shadow 0.2s;
  font-size: 14px;
}

.ulp-login-wrap input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 5px rgba(0,115,170,0.25);
  outline: none;
}

/* =============================
   PASSWORD TOGGLE (👁️)
   ============================= */
.ulp-password-wrap {
  position: relative;
}

#ulp-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  color: #666;
  font-size: 16px;
  transition: color 0.2s ease;
}

#ulp-toggle-pass:hover {
  color: var(--brand-blue);
}

/* =============================
   BUTTONS
   ============================= */
.ulp-btn,
.ulp-logout-btn {
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Primary Login Button */
.ulp-btn {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  padding: 10px 14px;
  width: 100%;
  margin-top: 5px;
}

.ulp-btn:hover {
  background: #005f8d !important; /* darker blue */
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.1) !important;
}

/* Logout Button */
.ulp-logout-btn {
  background: var(--brand-wine) !important;
  color: #ffffff !important;
  padding: 8px 12px;
}

.ulp-logout-btn:hover {
  background: #5a002c !important; /* darker wine */
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.1) !important;
}

/* =============================
   MESSAGES & NOTICES
   ============================= */
.ulp-message,
.ulp-notice,
.ulp-already-logged {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: opacity 0.6s ease, transform 0.4s ease;
}

/* Success message (used for login/logout confirmation) */
.ulp-notice {
  background: #f0f9ff;
  border: 1px solid #cce4ff;
  color: #005f8d;
  font-weight: 500;
}

/* Already logged in notice (before fade out) */
.ulp-already-logged {
  background: #eef6ee;
  border: 1px solid #b8e0b8;
  color: #007300;
  font-style: italic;
  font-weight: 500;
  opacity: 1;
}

/* Fade out smooth (JS handles the timing) */
.ulp-notice.fade,
.ulp-already-logged.fade {
  opacity: 0;
  transform: translateY(-5px);
}

/* =============================
   GENERAL LAYOUT
   ============================= */
.ulp-login-wrap p {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* =============================
   LINKS
   ============================= */
.ulp-login-wrap a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: 0.2s;
}

.ulp-login-wrap a:hover {
  text-decoration: underline;
}

/* =============================
   RESPONSIVE ADJUSTMENTS
   ============================= */
@media (max-width: 480px) {
  .ulp-login-wrap {
    padding: 15px;
  }
  .ulp-btn {
    font-size: 14px;
    padding: 9px 12px;
  }
  #ulp-toggle-pass {
    font-size: 14px;
  }
}
