/* =======================================================================
   HappyGo Admin — Auth pages theme (login / forgot / update password)
   Centered card on a soft red gradient, with warm yellow accents.
   Brand palette: red (logo) + yellow #FED330.
======================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E8312A;        /* primary        */
  --red-soft: #F0594F;   /* lighter red    */
  --red-dark: #C7221C;   /* hover          */
  --red-xdark: #A1140F;  /* active         */
  --red-deep: #7C0F0B;   /* deepest        */
  --red-pale: #FDECEB;   /* soft tint bg   */
  --yellow: #FED330;     /* accent         */
  --yellow-soft: #FFE89A;
  --radius: 22px;
  --radius-sm: 12px;
  --ink: #20242e;
  --muted: #7d8694;
  --line: #e8ebf1;
}

html, body { height: 100%; }

body.login-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(254,211,48,0.30), rgba(254,211,48,0) 42%),
    radial-gradient(circle at 88% 92%, rgba(124,15,11,0.55), rgba(124,15,11,0) 55%),
    linear-gradient(135deg, #F0594F 0%, var(--red) 45%, #B71C14 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative soft blobs */
body.login-page::before,
body.login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body.login-page::before {
  width: 460px; height: 460px;
  top: -150px; right: -120px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.14), rgba(255,255,255,0) 70%);
}
body.login-page::after {
  width: 360px; height: 360px;
  bottom: -120px; left: -90px;
  background: radial-gradient(circle at center, rgba(254,211,48,0.22), rgba(254,211,48,0) 70%);
}

/* ============================ CARD ============================ */
.lp-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  padding: 44px 38px 32px;
  overflow: hidden;
  box-shadow: 0 30px 70px -22px rgba(124,15,11,0.42), 0 6px 22px rgba(0,0,0,0.05);
  animation: lpFadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
/* red → yellow → red top accent strip */
.lp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 50%, var(--red) 100%);
}
@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-logo {
  display: block;
  height: 88px;
  width: auto;
  margin: 4px auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(232,49,42,0.18));
}

.lp-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin: 0 auto 22px;
  background: var(--yellow);
  color: #7a4a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 100px;
  box-shadow: 0 4px 12px -3px rgba(254,211,48,0.7);
}
.lp-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: block;
}

.lp-form-header { text-align: center; margin-bottom: 26px; }
.lp-form-header h2 {
  font-size: 25px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.lp-form-header p { font-size: 13.5px; color: var(--muted); }

/* ============================ ALERTS ============================ */
.lp-alert-success,
.lp-alert-danger {
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.45;
}
.lp-alert-success { background: #eefbf4; border: 1px solid #a8e6c0; color: #1a6e3c; }
.lp-alert-danger  { background: var(--red-pale); border: 1px solid #f3b6b2; color: #b3251d; }

/* ============================ FIELDS ============================ */
.lp-field { margin-bottom: 18px; }
.lp-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #3a4150; margin-bottom: 8px;
}
.lp-input-wrap { position: relative; }
.lp-ico {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px; color: #b3bccb;
  pointer-events: none; transition: color 0.2s;
}
.lp-field input {
  width: 100%; height: 50px;
  padding: 0 46px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px; color: var(--ink); background: #fbfcfe;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.lp-field input::placeholder { color: #b8c0cd; }
.lp-field input:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(232,49,42,0.12);
}
.lp-field .lp-input-wrap:focus-within .lp-ico { color: var(--red); }
.lp-field.has-error input { border-color: var(--red); background: #fff8f8; }

.lp-error-msg {
  font-size: 12px; color: var(--red-dark); font-weight: 500;
  margin-bottom: 7px; display: flex; align-items: center; gap: 5px;
}
.lp-error-msg i { color: var(--red-dark); }

/* password toggle */
.lp-toggle-pw {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  padding: 0; color: #b3bccb; line-height: 1; transition: color 0.15s;
}
.lp-toggle-pw:hover { color: var(--red); }
.lp-toggle-pw svg { width: 18px; height: 18px; display: block; }

/* meta row: remember + forgot */
.lp-row-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 24px;
}
.lp-check-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lp-check-wrap input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--red);
  cursor: pointer; margin: 0; flex-shrink: 0;
}
.lp-check-wrap span { font-size: 13px; color: #6b7384; user-select: none; }
.lp-forgot {
  font-size: 13px; color: var(--red); text-decoration: none;
  font-weight: 600; transition: opacity 0.15s;
}
.lp-forgot:hover { opacity: 0.72; color: var(--red-dark); text-decoration: none; }

/* ============================ SUBMIT ============================ */
.lp-btn-submit {
  width: 100%; height: 50px;
  background: linear-gradient(135deg, var(--red-soft) 0%, var(--red) 55%, var(--red-dark) 100%);
  color: #fff; border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 12px 24px -9px rgba(232,49,42,0.75);
  transition: filter 0.18s, transform 0.12s, box-shadow 0.18s;
}
.lp-btn-submit svg { width: 18px; height: 18px; flex-shrink: 0; }
.lp-btn-submit:hover { filter: brightness(0.96); transform: translateY(-1px); box-shadow: 0 16px 28px -9px rgba(232,49,42,0.75); }
.lp-btn-submit:active { transform: translateY(0); filter: brightness(0.9); }

.lp-link-row { text-align: center; margin-top: 18px; }
.lp-link {
  font-size: 13.5px; color: var(--red); text-decoration: none; font-weight: 600;
}
.lp-link:hover { color: var(--red-dark); text-decoration: none; }

.lp-footer-note { text-align: center; margin-top: 24px; font-size: 12px; color: #aab2bf; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 480px) {
  .lp-card { padding: 36px 24px 26px; }
  .lp-logo { height: 72px; }
  .lp-form-header h2 { font-size: 22px; }
}
