/* ==========================================================================
   WedVista — Login page (index.php)
   Self-contained: this page doesn't load listing-premium.css/form-premium.css,
   so the palette tokens are redeclared here rather than shared. Every rule
   below targets NEW wrapper classes added around the existing form/inputs/
   modal in index.php — no input name/id/type, hidden field, button value,
   form action/method, or JS hook was touched; this is a pure visual shell.
   ========================================================================== */

:root {
  --wv-ivory: #FFFBF7;
  --wv-ivory-2: #FDF3EF;
  --wv-blush: #F6DCE1;
  --wv-blush-soft: #FCEEF0;
  --wv-rose: #ed6f7e;
  --wv-plum: #5F2348;
  --wv-plum-2: #94365F;
  --wv-gold: #C9A15A;
  --wv-gold-soft: #F5E9D2;
  --wv-ink: #3a2a30;
  --wv-ink-soft: #8a7377;
  --wv-border: #EADFE0;
  --wv-radius: 20px;
  --wv-radius-sm: 12px;
  --wv-shadow: 0 20px 60px rgba(95, 35, 72, 0.16);
  --wv-primary-gradient: linear-gradient(135deg, #5F2348 0%, #94365F 55%, #D85F7C 100%);
  --wv-font-heading: 'Playfair Display', 'Georgia', serif;
  --wv-font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

html, body#index-body {
  height: 100%;
  background: var(--wv-ivory);
  font-family: var(--wv-font-body);
}
#index-body { overflow-x: hidden; }

/* Old top logo bar — kept (functionality: none, it's just a logo image) but
   flattened into a slim transparent strip that floats above the hero. */
#index-body > .header {
  background: transparent !important;
  min-height: auto !important;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  padding: 26px 0 0;
}
#index-body > .header img { filter: brightness(0) invert(1); opacity: 0.92; }
.wv-login-topbar-logo { margin-top: 10px; }

/* -------------------------------------------------------------------- */
/* Shell — split screen                                                  */
/* -------------------------------------------------------------------- */
.wv-login-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left — brand hero */
.wv-login-hero {
  position: relative;
  flex: 1 1 56%;
  background: var(--wv-primary-gradient);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.wv-login-hero::before,
.wv-login-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.wv-login-hero::before { width: 620px; height: 620px; top: -180px; left: -160px; }
.wv-login-hero::after { width: 420px; height: 420px; bottom: -200px; right: -120px; border-color: rgba(255,255,255,.12); }
.wv-login-hero-ring {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  top: 58%; left: 8%;
}
.wv-login-hero-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wv-gold);
  box-shadow: 0 0 16px 2px rgba(201, 161, 90, .7);
}
.wv-login-hero-dot:nth-child(1) { top: 18%; right: 22%; }
.wv-login-hero-dot:nth-child(2) { top: 68%; right: 14%; width: 5px; height: 5px; }
.wv-login-hero-dot:nth-child(3) { bottom: 14%; left: 20%; width: 6px; height: 6px; }

.wv-login-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
  color: #fff;
}
.wv-login-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--wv-gold-soft);
  margin-bottom: 22px;
}
.wv-login-hero-kicker::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--wv-gold);
}
.wv-login-hero-title {
  font-family: var(--wv-font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #fff;
}
.wv-login-hero-title em {
  font-style: italic;
  color: var(--wv-gold-soft);
}
.wv-login-hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 36px;
  max-width: 400px;
}
.wv-login-hero-stats {
  display: flex;
  gap: 34px;
}
.wv-login-hero-stats div { text-align: left; }
.wv-login-hero-stats strong {
  display: block;
  font-family: var(--wv-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.wv-login-hero-stats span {
  font-size: 12px;
  color: rgba(255,255,255,.72);
  letter-spacing: .3px;
}

/* Right — form panel */
.wv-login-panel {
  flex: 1 1 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: linear-gradient(160deg, var(--wv-ivory) 0%, var(--wv-ivory-2) 100%);
  position: relative;
}
.wv-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius);
  box-shadow: var(--wv-shadow);
  padding: 40px 36px 34px;
  box-sizing: border-box;
}
.wv-login-card-logo { height: 30px; margin-bottom: 22px; }
.wv-login-card-head h2 {
  font-family: var(--wv-font-heading);
  font-weight: 700;
  color: var(--wv-plum);
  font-size: 25px;
  margin: 0 0 6px;
}
.wv-login-card-head p {
  color: var(--wv-ink-soft);
  font-size: 13.5px;
  margin: 0 0 28px;
}

/* -------------------------------------------------------------------- */
/* Form fields                                                           */
/* -------------------------------------------------------------------- */
/* style.css's .form-signin carries a legacy "margin: 170px auto" (a relic
   of the old, un-centered page layout) plus its own white background —
   both need zeroing out now that .form-signin lives inside .wv-login-card,
   which is already centered and already the white surface. */
.wv-login-card .form-signin {
  margin: 0;
  max-width: 100%;
  background-color: transparent;
}
.wv-login-card .form-signin .form-signin-heading { padding: 0; margin: 0; }
.wv-login-form .login-wrap { width: 100%; padding: 0; }
.wv-login-field {
  position: relative;
  margin-bottom: 16px;
}
.wv-login-field-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--wv-ink-soft);
  display: flex;
  pointer-events: none;
  transition: color .2s ease;
  /* style.css gives .form-signin .form-control its own position:relative
     (and position:relative + z-index:2 on :focus) — without an explicit
     z-index here this icon, despite coming first in the DOM, loses the
     stacking order to the input and renders invisibly underneath it. */
  z-index: 3;
}
.wv-login-field-icon svg { width: 100%; height: 100%; }
.wv-login-field:focus-within .wv-login-field-icon { color: var(--wv-plum-2); }

.wv-login-form input.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--wv-border);
  border-radius: var(--wv-radius-sm);
  background: var(--wv-ivory-2);
  font-family: var(--wv-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--wv-ink);
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.wv-login-form input.form-control::placeholder { color: var(--wv-ink-soft); font-weight: 400; }
.wv-login-form input.form-control:focus {
  outline: none;
  border-color: var(--wv-plum-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(148, 54, 95, 0.12);
}

.wv-login-submit.btn.btn-primary {
  width: 100%;
  height: 48px !important;
  border: none;
  border-radius: var(--wv-radius-sm);
  background: var(--wv-primary-gradient);
  font-family: var(--wv-font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .3px;
  box-shadow: 0 10px 26px rgba(95, 35, 72, 0.3);
  transition: transform .15s ease, box-shadow .2s ease;
  margin-top: 6px;
}
.wv-login-submit.btn.btn-primary:hover,
.wv-login-submit.btn.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(95, 35, 72, 0.36);
  background: var(--wv-primary-gradient);
}
.wv-login-submit.btn.btn-primary:active { transform: translateY(0); }

.wv-login-forgot {
  display: block;
  text-align: center;
  margin: 18px 0 0;
  font-weight: 400;
}
.wv-login-forgot .pull-right { float: none !important; }
/* style.css's ".form-signin .checkbox a" (2 classes) otherwise wins over a
   plain ".wv-login-forgot a" (1 class) and keeps the legacy blue #007bb7. */
.form-signin .wv-login-forgot a {
  color: var(--wv-plum-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.form-signin .wv-login-forgot a:hover { color: var(--wv-plum); text-decoration: underline; }

/* Alert / status messages (PHP-rendered, content untouched) */
.wv-login-alert {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: var(--wv-radius-sm);
  margin-bottom: 16px;
}
.wv-login-alert-success { background: #E7F6EE; color: #1c7a4d; }
.wv-login-alert-error { background: var(--wv-blush-soft); color: var(--wv-plum-2); }
.wv-login-alert a { color: inherit; text-decoration: underline; }

/* -------------------------------------------------------------------- */
/* Forgot-password modal (#myModal) — same ids/JS, restyled shell        */
/* -------------------------------------------------------------------- */
#myModal .modal-content {
  border: none;
  border-radius: var(--wv-radius);
  box-shadow: var(--wv-shadow);
  overflow: hidden;
  font-family: var(--wv-font-body);
}
#myModal .modal-header {
  background: var(--wv-primary-gradient);
  border-bottom: none;
  padding: 18px 24px;
}
#myModal .modal-title { font-family: var(--wv-font-heading); font-weight: 700; color: #fff; }
#myModal .modal-header .close {
  color: #fff; opacity: .85; text-shadow: none;
}
#myModal .modal-header .close:hover { opacity: 1; }
#myModal .modal-body { padding: 26px 24px 22px; color: var(--wv-ink); font-size: 13.5px; }
.wv-login-modal-row { margin: 0; }
.wv-login-modal-hint {
  color: var(--wv-ink-soft);
  font-size: 13px;
  margin-bottom: 18px;
}
#myModal .wv-login-field { margin-bottom: 6px; }
#myModal .form-control {
  height: 44px !important;
  border: 1.5px solid var(--wv-border);
  border-radius: var(--wv-radius-sm);
  background: var(--wv-ivory-2);
  font-family: var(--wv-font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wv-ink);
}
#myModal .wv-login-field .form-control { padding-left: 42px; }
#myModal .form-control::placeholder { color: var(--wv-ink-soft); font-weight: 400; }
#myModal .form-control:focus {
  outline: none;
  border-color: var(--wv-plum-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(148, 54, 95, 0.12);
}
.wv-login-modal-err { color: #FF0000; font-size: 12px; display: inline-block; margin-top: 4px; }
#myModal .modal-footer {
  border-top: 1px solid var(--wv-border);
  padding: 16px 24px;
  margin: 0;
}
#myModal .btn.btn-primary {
  background: var(--wv-primary-gradient);
  border: none;
  border-radius: var(--wv-radius-sm);
  font-weight: 600;
  padding: 9px 20px;
}
#myModal .btn.btn-default {
  border-radius: var(--wv-radius-sm);
  border: 1.5px solid var(--wv-border);
  color: var(--wv-plum);
  font-weight: 600;
  background: #fff;
}
#myModal .btn.btn-default:hover { background: var(--wv-blush-soft); }

/* -------------------------------------------------------------------- */
/* Footer                                                                 */
/* -------------------------------------------------------------------- */
.wv-login-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: transparent !important;
  min-height: auto !important;
  padding: 14px 28px !important;
  z-index: 4;
}
.wv-login-footer p { font-size: 11.5px !important; color: var(--wv-ink-soft) !important; margin: 0 !important; }
.wv-login-footer a { color: var(--wv-plum-2) !important; }

/* Decorative corner watermark logo — base rules moved here from index.php's
   old embedded <style> block (removed); tucked in more subtly than before. */
.fixed-logo {
  background: url(../images/logo.jpg) no-repeat;
  height: 82px;
  width: 288px;
  position: fixed;
  z-index: 50000;
  right: 20px;
  bottom: -20px;
  opacity: 0.06;
  filter: grayscale(1);
}
.fixed-logo:hover {
  background: url(../images/logo.jpg) no-repeat;
  height: 82px;
  width: 288px;
  position: fixed;
  z-index: 50000;
  right: 20px;
  bottom: -20px;
  opacity: 0.12;
}
@media (max-width: 991px) {
  .fixed-logo { display: none; }
}

/* -------------------------------------------------------------------- */
/* Responsive                                                             */
/* -------------------------------------------------------------------- */
@media (max-width: 991px) {
  .wv-login-hero { display: none; }
  .wv-login-panel { flex: 1 1 100%; }
  #index-body > .header { position: static; padding: 20px 0 0 20px; }
  #index-body > .header img { filter: none; }
}
@media (max-width: 480px) {
  .wv-login-card { padding: 32px 22px 26px; box-shadow: none; border: none; }
  .wv-login-panel { padding: 20px 16px 80px; }
}
