/**
 * Login page: central card, food-themed background, no site header/footer.
 * Uses site purple theme (#520975, #7c3aed) for buttons and accents.
 */

body.ppg-login-page-body {
  background: #000;
  min-height: 100vh;
}

/* Page: full viewport, light base, decorative bg */
.ppg-login-page-body .ppg-login-page,
body.ppg-login-page-body .ppg-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 60px;
  box-sizing: border-box;
  background: #f5f5f7;
  background-color: #000 !important;
  position: relative;
}

/* Background layer: full-cover food image + dark overlay */
.ppg-login-page__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background-image: url(https://images.unsplash.com/photo-1546069901-ba9599a7e63c?w=1200&h=800&fit=crop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ppg-login-page__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ppg-login-page__watermark {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  z-index: 1;
}

.ppg-login-page__food {
  display: none;
}

/* Hide footer strip content */
.ppg-login-page__footer-inner {
  display: none !important;
}

/* Top-left logo */
.ppg-login-page__logo {
  display: none !important;
}

.ppg-login-page__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Central card */
.ppg-login-page__card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.ppg-login-page__card {
  background: #0D0D0D !important;
  border-radius: 24px;
  padding: 40px 36px 36px;
}

.ppg-login-page__card-wrap .ppg-login-page__card {
  background: #0D0D0D !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Input fields border-radius */
.ppg-login-page input[type="text"],
.ppg-login-page input[type="password"],
.ppg-login-page input[type="email"],
.ppg-login-page input[type="url"],
.ppg-login-page input[type="date"],
.ppg-login-page input[type="month"],
.ppg-login-page input[type="time"],
.ppg-login-page input[type="datetime"],
.ppg-login-page input[type="datetime-local"],
.ppg-login-page input[type="week"],
.ppg-login-page input[type="number"],
.ppg-login-page input[type="search"],
.ppg-login-page input[type="tel"],
.ppg-login-page input[type="color"],
.ppg-login-page textarea {
  border-radius: 8px !important;
}

.ppg-login-page__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 13px;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  font-family: 'Montserrat', sans-serif;
}

.ppg-login-page__tagline {
  margin: 0 0 28px;
  font-size: 14px;
  color: #ffffff !important;
  line-height: 1.4;
}

.ppg-login-page__tagline strong {
  color: #e9b8ff !important;
  font-weight: 700;
}

/* Form */
.ppg-login-page__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ppg-login-page__field {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ppg-login-page__input-row {
  position: relative;
  width: 100%;
  flex: 1 1 100%;
  min-height: 48px;
}

.ppg-login-page__input-icon {
  position: absolute;
  left: 14px;
  top: 24px;
  transform: translateY(-50%);
  color: #9b94a8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ppg-login-page__input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  font-size: 15px;
  color: #ffffff !important;
  background: #1A1A1A !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

/* Ensure visibility during browser autofill */
.ppg-login-page__input:-webkit-autofill,
.ppg-login-page__input:-webkit-autofill:hover,
.ppg-login-page__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #1A1A1A inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.ppg-login-page__input--has-toggle {
  padding-right: 48px;
}

.ppg-login-page__input::placeholder {
  color: #888888;
}

.ppg-login-page__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 71, 255, 0.4);
}

.ppg-login-page__field--error .ppg-login-page__input {
  border-color: #e53935;
}

.ppg-login-page__field-error {
  width: 100%;
  flex: 1 1 100%;
  font-size: 13px;
  color: #e53935;
  margin-top: 4px;
}

/* Centered with top/bottom/margin so global button:hover transform:none doesn't move it */
.ppg-login-page__input-row .ppg-login-page__toggle-pwd {
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #888888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 2;
  flex-shrink: 0;
  outline: none;
  box-shadow: none;
}

.ppg-login-page__input-row .ppg-login-page__toggle-pwd:hover,
.ppg-login-page__input-row .ppg-login-page__toggle-pwd:focus {
  color: #520975;
  background: transparent;
  outline: none;
  box-shadow: none;
}

.ppg-login-page__toggle-pwd .ppg-login-page__toggle-pwd-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.ppg-login-page__toggle-pwd .ppg-login-page__toggle-pwd-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ppg-login-page__toggle-pwd .ppg-login-page__toggle-pwd-icon--show,
.ppg-login-page__toggle-pwd .ppg-login-page__toggle-pwd-icon--hide {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}

.ppg-login-page__toggle-pwd .ppg-login-page__toggle-pwd-icon--show {
  display: flex;
}

.ppg-login-page__toggle-pwd .ppg-login-page__toggle-pwd-icon--hide {
  display: none;
}

.ppg-login-page__toggle-pwd.is-visible .ppg-login-page__toggle-pwd-icon--show {
  display: none;
}

.ppg-login-page__toggle-pwd.is-visible .ppg-login-page__toggle-pwd-icon--hide {
  display: flex;
}

/* Row: Remember me + Forgot password */
.ppg-login-page__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ppg-login-page__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #ffffff !important;
  cursor: pointer;
  margin: 0;
}

.ppg-login-page__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #520975;
  margin: 0;
}

.ppg-login-page__forgot {
  font-size: 14px;
  color: #ffffff !important;
  text-decoration: none;
}

.ppg-login-page__forgot:hover {
  color: #e9b8ff !important;
}

/* Submit button: site purple */
.ppg-login-page__submit {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #520975;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.2s;
  font-family: inherit;
}

.ppg-login-page__submit:hover {
  background: #520975;
  box-shadow: none;
}

.ppg-login-page__submit:active {
  transform: scale(0.99);
}

.ppg-login-page__signup-link {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.ppg-login-page__signup-link a {
  color: #b152f7;
  font-weight: 600;
  text-decoration: none;
}

.ppg-login-page__signup-link a:hover {
  text-decoration: none;
}

.ppg-login-page__success {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.5);
  border-radius: 8px;
  color: #5dd879;
  font-size: 14px;
  text-align: center;
}

.ppg-login-page__error-wrap {
  margin: 0 0 16px;
}

.ppg-login-page__error-text {
  margin: 0;
  font-size: 14px;
  color: #e53935;
  text-align: center;
  line-height: 1.4;
}

/* Divider */
.ppg-login-page__divider {
  margin: 24px 0 16px;
  text-align: center;
  font-size: 13px;
  color: #ffffff !important;
  position: relative;
}

.ppg-login-page__divider::before,
.ppg-login-page__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: #e0e0e6;
}

.ppg-login-page__divider::before {
  left: 0;
}

.ppg-login-page__divider::after {
  right: 0;
}

/* Social buttons */
.ppg-login-page__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ppg-login-page__social-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e0e0e6;
  background: #fff;
  color: #1877f2;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ppg-login-page__social-btn--google {
  color: inherit;
}

.ppg-login-page__social-btn:hover {
  border-color: #520975;
  box-shadow: 0 4px 12px rgba(82, 9, 117, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
  .ppg-login-page__food--left,
  .ppg-login-page__food--right {
    width: 22%;
    opacity: 0.25;
  }
}

@media (max-width: 600px) {
  .ppg-login-page-body .ppg-login-page,
  body.ppg-login-page-body .ppg-login-page {
    padding: 20px 16px 56px;
  }
  .ppg-login-page__logo {
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
  }

  .ppg-login-page__logo img {
    width: 28px;
    height: 28px;
  }

  .ppg-login-page__card {
    padding: 32px 24px 28px;
    border-radius: 20px;
  }

  .ppg-login-page__title {
    font-size: 24px;
  }

  .ppg-login-page__tagline {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .ppg-login-page__watermark {
    font-size: clamp(56px, 14vw, 100px);
  }

  .ppg-login-page__food--left,
  .ppg-login-page__food--right {
    display: none;
  }
}

@media (max-width: 480px) {
  .ppg-login-page-body .ppg-login-page,
  body.ppg-login-page-body .ppg-login-page {
    padding: 16px 12px 48px;
  }
  .ppg-login-page__card {
    padding: 24px 20px 24px;
  }
  .ppg-login-page__title {
    font-size: 22px;
  }
  .ppg-login-page__input {
    padding: 12px 14px;
    font-size: 16px;
  }
  .ppg-login-page__btn {
    padding: 12px 20px;
    min-height: 48px;
  }
}
