/*!
 * D'Light — Auth Pages
 * Split-screen login/registration chrome. Pairs with "D'Light — WPUF Skin"
 * for the form-field styling; this file only handles the page around it.
 */

:root{
  --dl-blue:#0075f2;      --dl-blue-soft:#e8f2ff;
  --dl-magenta:#f52aff;   --dl-magenta-soft:#fdeaff;
  --dl-gold:#ffb700;      --dl-gold-soft:#fff5df;
  --dl-teal:#00c7c4;      --dl-teal-soft:#e3fbfa;

  --dl-ink:#111827;       --dl-ink-soft:#667085;    --dl-ink-faint:#98a2b3;
  --dl-bg:#f5f6fa;        --dl-card:#ffffff;        --dl-border:#e8eaf1;

  --dl-radius-lg:18px;    --dl-radius-md:12px;      --dl-radius-sm:9px;
  --dl-shadow:0 1px 2px rgba(16,24,40,.05), 0 2px 8px rgba(16,24,40,.05);
  --dl-shadow-lg:0 20px 45px rgba(16,24,40,.16);
  --dl-font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --dl-font-head:'Plus Jakarta Sans','Inter',sans-serif;
}

.dlight-msi{
  font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;
  font-size:20px;line-height:1;letter-spacing:normal;text-transform:none;
  display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;
  -webkit-font-smoothing:antialiased;vertical-align:middle;
}

/* ==========================================================================
   PAGE SHELL
   ========================================================================== */
.dlight-auth-page{
  font-family:var(--dl-font-body);color:var(--dl-ink);
  display:flex;flex-direction:column;height:100vh;min-height:100dvh;background:var(--dl-bg);
  width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
  overflow-x:hidden;
}

.dlight-auth-topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 44px;background:#fff;border-bottom:1px solid var(--dl-border);
}
.dlight-auth-logo img{ height:26px;display:block; }
.dlight-auth-home-link{
  display:flex;align-items:center;gap:6px;color:var(--dl-ink-soft);
  font-size:12.5px;font-weight:700;text-decoration:none;
}
.dlight-auth-home-link .dlight-msi{ font-size:17px; }
.dlight-auth-home-link:hover{ color:var(--dl-blue); }

.dlight-auth-main{ flex:1 1 auto;display:flex;min-height:0;overflow:hidden; }

/* ==========================================================================
   LEFT — dark brand hero (sticky)
   ========================================================================== */
.dlight-auth-hero{
  flex:0 0 44%;align-self:stretch;height:100%;
  overflow:hidden;position:relative;color:#fff;
  background:
    radial-gradient(ellipse 480px 380px at 8% -10%, rgba(0,117,242,.38), transparent 60%),
    radial-gradient(ellipse 420px 360px at 100% 10%, rgba(245,42,255,.26), transparent 62%),
    radial-gradient(ellipse 460px 420px at 92% 100%, rgba(255,183,0,.28), transparent 60%),
    radial-gradient(ellipse 380px 340px at 0% 100%, rgba(0,199,196,.22), transparent 58%),
    linear-gradient(160deg,#08080d,#100a1a 55%,#08080d);
  display:flex;align-items:center;justify-content:center;padding:60px;box-sizing:border-box;
}
.dlight-auth-hero::after{ content:'';position:absolute;inset:0;box-shadow:inset 0 0 140px rgba(0,0,0,.55);pointer-events:none; }
.dlight-auth-hero-inner{ position:relative;z-index:1;max-width:420px; }

.dlight-auth-ring{
  width:52px;height:52px;border-radius:50%;
  background:conic-gradient(from 0deg,var(--dl-blue),var(--dl-magenta),var(--dl-gold),var(--dl-teal),var(--dl-blue));
  box-shadow:0 0 30px rgba(255,183,0,.25);position:relative;margin-bottom:26px;
}
.dlight-auth-ring::after{ content:'';position:absolute;inset:9px;border-radius:50%;background:#08080d; }
.dlight-auth-hero-logo{ max-width:180px;max-height:64px;width:auto;height:auto;display:block;margin-bottom:26px;object-fit:contain; }

/* The left brand panel stays fixed while only the right form column scrolls. */
.dlight-auth-register .dlight-auth-hero{ position:relative;height:100%;min-height:0; }

.dlight-auth-kicker{
  font-size:11px;font-weight:800;letter-spacing:2.5px;text-transform:uppercase;color:var(--dl-gold);margin:0 0 14px;
}
.dlight-auth-hero h1{
  font-family:var(--dl-font-head);font-size:32px;font-weight:800;line-height:1.25;
  letter-spacing:-.5px;margin:0 0 16px;color:#fff;
}
.dlight-auth-sub{ font-size:13.5px;line-height:1.75;color:rgba(255,255,255,.72);margin:0 0 30px; }

.dlight-auth-features{ list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px; }
.dlight-auth-features li{ display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:rgba(255,255,255,.88); }
.dlight-auth-features .dlight-msi{ font-size:19px;color:var(--dl-teal);flex-shrink:0; }

/* ==========================================================================
   RIGHT — form panel
   ========================================================================== */
.dlight-auth-panel{
  flex:1 1 auto;display:flex;align-items:flex-start;justify-content:center;
  padding:60px 40px;box-sizing:border-box;min-width:0;min-height:0;
  overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;scrollbar-gutter:stable;
}
.dlight-auth-card{
  width:100%;max-width:560px;background:var(--dl-card);border:1px solid var(--dl-border);
  border-radius:var(--dl-radius-lg);box-shadow:var(--dl-shadow-lg);padding:38px 40px;box-sizing:border-box;
  margin:auto 0;
  flex:0 0 auto;
}
.dlight-auth-card-wide{ max-width:560px; }

.dlight-auth-card h2{
  font-family:var(--dl-font-head);font-size:22px;font-weight:800;color:var(--dl-ink);margin:0 0 6px;letter-spacing:-.3px;
}
.dlight-auth-card-sub{ font-size:13px;color:var(--dl-ink-soft);margin:0 0 26px; }

.dlight-auth-switch{
  text-align:center;font-size:12.5px;color:var(--dl-ink-soft);margin:16px 0 0;padding-top:16px;border-top:1px solid var(--dl-border);
}
.dlight-auth-switch a{ color:var(--dl-blue);font-weight:700;text-decoration:none; }
.dlight-auth-switch a:hover{ text-decoration:underline; }

/* ==========================================================================
   Neutralize the inner WPUF card — our .dlight-auth-card already provides
   the card treatment, so the form itself should render "borderless" here
   to avoid a card-inside-a-card look.
   ========================================================================== */
.dlight-auth-card .wpuf-form-add,
.dlight-auth-card #wpuf-login-form .wpuf-login-form,
.dlight-auth-card #wpuf-registration-form .wpuf-registration-form{
  background:none !important;border:none !important;box-shadow:none !important;
  padding:0 !important;margin:0 !important;
}
.dlight-auth-card #wpuf-login-form,
.dlight-auth-card #wpuf-registration-form,
.dlight-auth-card .wpuf-form-add{
  max-width:100% !important;margin:0 !important;
}
.dlight-auth-card .wpuf-fields input[type="text"],
.dlight-auth-card .wpuf-fields input[type="email"],
.dlight-auth-card .wpuf-fields input[type="password"],
.dlight-auth-card .wpuf-fields input[type="number"],
.dlight-auth-card .wpuf-fields input[type="url"],
.dlight-auth-card .wpuf-fields input[type="tel"],
.dlight-auth-card .wpuf-fields select,
.dlight-auth-card .wpuf-fields input.input{
  max-width:100% !important;
}
.dlight-auth-card .wpuf-form-title,
.dlight-auth-card .wpuf-form-description{
  display:none; /* our own <h2>/subtitle above already covers this */
}

/* WPUF's own login template appends its own Register/Lost-password links
   block — we already render our own styled "Don't have an account?" line,
   so hide WPUF's copy to avoid the two appearing one after another. */
.dlight-auth-card .wpuf-action-links{ display:none !important; }

/* The registration template (and some login variants) append their
   "Already have an account?" / hidden-input <li> WITHOUT the .wpuf-el
   class WPUF gives to real fields — hide those raw <li> elements (but
   never the field lis or the submit li) so only OUR OWN switch line
   at the bottom remains, instead of two of them stacked. */
.dlight-auth-card ul.wpuf-form > li:not(.wpuf-el):not(.wpuf-submit){
  display:none !important;
}

/* Field icons (person / mail / lock) added by the WPUF Skin plugin's JS
   already position and center themselves correctly via .dlight-field-icon
   in dlight-wpuf-skin.css — no page-specific override needed here. This
   card only needs to make sure its own faint-ink color token lines up
   with the skin's, which it already does (both plugins share the same
   --dl-ink-faint value). */

/* Tighten the gap between the submit button and the end of the form,
   and give Google's reCAPTCHA widget consistent breathing room. */
.dlight-auth-card li.wpuf-submit{ margin:14px 0 0 !important; }
.dlight-auth-card .g-recaptcha,
.dlight-auth-card [class*="recaptcha" i]{
  margin:16px 0 !important;transform-origin:left top;
}


/* ==========================================================================
   WPUF ACTION BUTTON — force a visible, branded submit button.
   This overrides transparent/white button rules from the active WPUF skin.
   ========================================================================== */
.dlight-auth-card .wpuf-submit input[type="submit"],
.dlight-auth-card .wpuf-submit button[type="submit"],
.dlight-auth-card .wpuf-form-submit input[type="submit"],
.dlight-auth-card button.wpuf-button,
.dlight-auth-card input.wpuf-button,
.dlight-auth-card .wpuf-button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:48px !important;
  width:100% !important;
  padding:13px 22px !important;
  margin:8px 0 0 !important;
  border:1px solid #0067d9 !important;
  border-radius:10px !important;
  background:linear-gradient(135deg,#0075f2 0%,#005fd0 100%) !important;
  color:#fff !important;
  font-family:var(--dl-font-body) !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-align:center !important;
  text-shadow:none !important;
  box-shadow:0 8px 18px rgba(0,117,242,.22) !important;
  opacity:1 !important;
  visibility:visible !important;
  cursor:pointer !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease !important;
}
.dlight-auth-card .wpuf-submit input[type="submit"]:hover,
.dlight-auth-card .wpuf-submit button[type="submit"]:hover,
.dlight-auth-card .wpuf-form-submit input[type="submit"]:hover,
.dlight-auth-card button.wpuf-button:hover,
.dlight-auth-card input.wpuf-button:hover,
.dlight-auth-card .wpuf-button:hover{
  filter:brightness(1.05) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 11px 24px rgba(0,117,242,.28) !important;
}
.dlight-auth-card .wpuf-submit input[type="submit"]:disabled,
.dlight-auth-card .wpuf-submit button[type="submit"]:disabled,
.dlight-auth-card .wpuf-form-submit input[type="submit"]:disabled,
.dlight-auth-card .wpuf-button:disabled{
  opacity:.55 !important;
  cursor:not-allowed !important;
  transform:none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .dlight-auth-hero{ display:none; }
  .dlight-auth-main{ overflow:visible; }
  .dlight-auth-panel{ padding:36px 20px; overflow-y:auto; }
  .dlight-auth-card{ margin:auto 0; }
}
@media (max-width: 480px){
  .dlight-auth-topbar{ padding:14px 18px; }
  .dlight-auth-card,.dlight-auth-card-wide{ padding:26px 20px; max-width:100%; }
}

/* ==========================================================================
   RTL
   ========================================================================== */
body.rtl .dlight-auth-topbar{ flex-direction:row-reverse; }
body.rtl .dlight-auth-home-link{ flex-direction:row-reverse; }

/* Safety-net "Go to Dashboard" button (shown only if the auto-redirect cannot fire) */
.dlight-auth-page .dlight-auth-dashboard-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    background: #111;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}
