/* Shared by the Sign in / Register / Reset password pages (public/assets/includes/css/auth.css) */
:root {
    --lg-blue: #0071bb;
    --lg-blue-dark: #0a3d62;
    --lg-teal: #12b5a6;
    --lg-gold: #f5b83d;
    --lg-ink: #0f172a;
    --lg-muted: #64748b;
    --lg-line: #e2e8f0;
    --lg-danger: #e11d48;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--lg-ink);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(130deg, #062a47, #0a3d62 35%, #0071bb 70%, #12b5a6);
    background-size: 220% 220%;
    animation: lgGradient 18s ease-in-out infinite;
}

/* ---------- floating capsules / crosses in the background ---------- */
.lg-floaters { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.lg-floaters span {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    animation: lgFloat linear infinite;
}
.lg-floaters .caps { width: 74px; height: 28px; transform: rotate(-35deg); }
.lg-floaters .caps::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .18); }
.lg-floaters .dot { width: 18px; height: 18px; }
.lg-floaters .ring { width: 54px; height: 54px; background: transparent; }
.lg-floaters span:nth-child(1)  { left: 6%;  top: 82%; animation-duration: 26s; }
.lg-floaters span:nth-child(2)  { left: 18%; top: 96%; animation-duration: 34s; animation-delay: -9s; }
.lg-floaters span:nth-child(3)  { left: 31%; top: 90%; animation-duration: 22s; animation-delay: -4s; }
.lg-floaters span:nth-child(4)  { left: 47%; top: 98%; animation-duration: 30s; animation-delay: -15s; }
.lg-floaters span:nth-child(5)  { left: 62%; top: 88%; animation-duration: 28s; animation-delay: -7s; }
.lg-floaters span:nth-child(6)  { left: 76%; top: 95%; animation-duration: 36s; animation-delay: -20s; }
.lg-floaters span:nth-child(7)  { left: 88%; top: 85%; animation-duration: 24s; animation-delay: -12s; }
.lg-floaters span:nth-child(8)  { left: 94%; top: 99%; animation-duration: 32s; animation-delay: -2s; }

/* ---------- card ---------- */
.lg-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1020px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 40px 80px -20px rgba(2, 20, 40, .55), 0 0 0 1px rgba(255, 255, 255, .12);
    animation: lgRise .9s cubic-bezier(.2, .8, .2, 1) both;
}

/* ---------- brand panel ---------- */
.lg-brand {
    position: relative;
    padding: 44px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 15% 10%, rgba(18, 181, 166, .45), transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(245, 184, 61, .22), transparent 40%),
        linear-gradient(160deg, #0a3d62, #0071bb);
    overflow: hidden;
}
.lg-brand::before {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    right: -120px; top: -120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 90px rgba(255, 255, 255, .02);
    animation: lgPulse 7s ease-in-out infinite;
}
.lg-logo-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 10px 16px;
    text-decoration: none;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, .4);
    position: relative; z-index: 1;
    transition: transform .25s ease;
}
.lg-logo-chip:hover { transform: translateY(-2px); }
.lg-logo-chip img { height: 38px; width: auto; display: block; }
.lg-brand h2 { font-size: 1.9rem; line-height: 1.25; font-weight: 800; margin: 34px 0 12px; position: relative; z-index: 1; }
.lg-brand h2 em { font-style: normal; color: var(--lg-gold); }
.lg-brand p.lead { color: rgba(255, 255, 255, .78); margin: 0 0 28px; line-height: 1.65; position: relative; z-index: 1; }

.lg-perk {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    position: relative; z-index: 1;
    opacity: 0;
    animation: lgSlideIn .7s cubic-bezier(.2, .8, .2, 1) forwards;
}
.lg-perk:nth-of-type(1) { animation-delay: .55s; }
.lg-perk:nth-of-type(2) { animation-delay: .75s; }
.lg-perk:nth-of-type(3) { animation-delay: .95s; }
.lg-perk .ico {
    flex: 0 0 44px; height: 44px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 1.05rem;
    backdrop-filter: blur(6px);
}
.lg-perk h4 { margin: 0 0 2px; font-size: .98rem; font-weight: 700; }
.lg-perk p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .72); line-height: 1.5; }

.lg-pulse-line { margin-top: 10px; position: relative; z-index: 1; opacity: .9; }
.lg-pulse-line svg { width: 100%; height: 46px; display: block; }
.lg-pulse-line path {
    fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 520; stroke-dashoffset: 520;
    animation: lgDraw 3.6s ease-in-out infinite;
}
.lg-support { font-size: .82rem; color: rgba(255, 255, 255, .72); position: relative; z-index: 1; margin-top: 14px; }
.lg-support i { margin-right: 6px; color: var(--lg-gold); }

/* ---------- form panel ---------- */
.lg-form-wrap { padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.lg-back { color: var(--lg-muted); font-size: .85rem; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; transition: color .2s, gap .2s; }
.lg-back:hover { color: var(--lg-blue); gap: 12px; }
.lg-form-wrap h1 { font-size: 1.85rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.lg-sub { color: var(--lg-muted); margin: 0 0 26px; line-height: 1.55; }

.lg-alert {
    display: flex; gap: 10px; align-items: center;
    padding: 12px 14px; margin-bottom: 20px;
    border-radius: 12px;
    background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3;
    font-size: .9rem; font-weight: 600;
    animation: lgShake .55s cubic-bezier(.36, .07, .19, .97) both;
}

.lg-field { position: relative; margin-bottom: 18px; }
.lg-field input {
    width: 100%;
    height: 58px;
    padding: 22px 48px 6px 48px;
    border: 1.5px solid var(--lg-line);
    border-radius: 14px;
    font: inherit; font-size: 1rem; color: var(--lg-ink);
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.lg-field input:hover { border-color: #cbd5e1; }
.lg-field input:focus { border-color: var(--lg-blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 113, 187, .12); }
.lg-field label {
    position: absolute; left: 48px; top: 19px;
    color: var(--lg-muted); font-size: .98rem; pointer-events: none;
    transition: all .18s ease; transform-origin: left top;
}
.lg-field input:focus + label,
.lg-field input:not(:placeholder-shown) + label { top: 8px; font-size: .72rem; font-weight: 700; color: var(--lg-blue); letter-spacing: .02em; }
.lg-field .ico { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #94a3b8; transition: color .2s; }
.lg-field input:focus ~ .ico { color: var(--lg-blue); }
.lg-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; background: transparent; color: #94a3b8; border-radius: 10px; cursor: pointer;
    transition: background .2s, color .2s;
}
.lg-toggle:hover { background: #eef2f7; color: var(--lg-blue); }

.lg-row { display: flex; justify-content: flex-end; margin: -6px 0 22px; }
.lg-row a { color: var(--lg-blue); font-size: .88rem; font-weight: 600; text-decoration: none; }
.lg-row a:hover { text-decoration: underline; }

.lg-submit {
    position: relative; overflow: hidden;
    width: 100%; height: 56px;
    border: 0; border-radius: 14px; cursor: pointer;
    color: #fff; font: inherit; font-size: 1.02rem; font-weight: 700;
    background: linear-gradient(120deg, var(--lg-blue), #0a8fd6 55%, var(--lg-teal));
    background-size: 180% 100%;
    box-shadow: 0 14px 28px -12px rgba(0, 113, 187, .65);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease, background-position .5s ease;
}
.lg-submit:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 32px -12px rgba(0, 113, 187, .7); }
.lg-submit:active { transform: translateY(0); }
.lg-submit::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg); transition: left .7s ease;
}
.lg-submit:hover::after { left: 130%; }
.lg-submit[disabled] { cursor: progress; opacity: .92; transform: none; }
.lg-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: lgSpin .7s linear infinite; display: none; }
.lg-submit.is-loading .lg-spinner { display: inline-block; }
.lg-submit.is-loading .fa-sign-in-alt { display: none; }

.lg-divider { display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: .8rem; margin: 26px 0 16px; text-transform: uppercase; letter-spacing: .08em; }
.lg-divider::before, .lg-divider::after { content: ''; flex: 1; height: 1px; background: var(--lg-line); }
.lg-register {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; border-radius: 14px;
    border: 1.5px solid var(--lg-line); color: var(--lg-ink); text-decoration: none; font-weight: 700;
    transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.lg-register:hover { border-color: var(--lg-blue); color: var(--lg-blue); background: #f0f8ff; transform: translateY(-1px); }

.lg-form-wrap > * { animation: lgFade .7s ease both; }
.lg-form-wrap > *:nth-child(1) { animation-delay: .25s; }
.lg-form-wrap > *:nth-child(2) { animation-delay: .32s; }
.lg-form-wrap > *:nth-child(3) { animation-delay: .38s; }
.lg-form-wrap > *:nth-child(4) { animation-delay: .44s; }
.lg-form-wrap > *:nth-child(5) { animation-delay: .5s; }
.lg-form-wrap > *:nth-child(6) { animation-delay: .56s; }

/* ---------- keyframes ---------- */
@keyframes lgGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes lgFloat { from { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(-115vh) rotate(160deg); opacity: 0; } }
@keyframes lgRise { from { opacity: 0; transform: translateY(34px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lgSlideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes lgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lgPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes lgDraw { 0% { stroke-dashoffset: 520; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes lgShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
@keyframes lgSpin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
    .lg-card { grid-template-columns: 1fr; max-width: 520px; }
    .lg-brand { padding: 28px 28px 22px; }
    .lg-brand h2 { font-size: 1.4rem; margin: 18px 0 6px; }
    .lg-brand p.lead, .lg-perk, .lg-pulse-line, .lg-support { display: none; }
    .lg-form-wrap { padding: 32px 26px 34px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .lg-perk { opacity: 1; }
    .lg-pulse-line path { stroke-dashoffset: 0; }
}

@media (max-width: 880px) { .lg-step { display: none; } }
@media (prefers-reduced-motion: reduce) { .lg-step { opacity: 1; } .lg-success .tick { animation: none; } }

/* ======================================================================
   Additions used by Register / Reset password
   ====================================================================== */

/* two-column field grid (collapses on phones) */
.lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lg-grid .lg-field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .lg-grid { grid-template-columns: 1fr; } }

/* wider card for the registration form */
.lg-card--wide { max-width: 1120px; grid-template-columns: .9fr 1.25fr; }
.lg-form-wrap--compact { padding: 38px 42px; }
.lg-form-wrap--compact h1 { font-size: 1.65rem; }
@media (max-width: 880px) { .lg-card--wide { grid-template-columns: 1fr; max-width: 560px; } .lg-form-wrap--compact { padding: 30px 24px 32px; } }

/* alerts: success / warning variants + hidden-by-default JS banner */
.lg-alert.is-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; animation: lgFade .5s ease both; }
.lg-alert.is-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.lg-alert[hidden] { display: none; }

/* password strength meter */
.lg-meter { height: 5px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: -8px 2px 6px; }
.lg-meter > i { display: block; height: 100%; width: 0; border-radius: 99px; background: #ef4444; transition: width .35s ease, background .35s ease; }
.lg-hint { display: block; font-size: .76rem; color: var(--lg-muted); margin: 0 2px 14px; min-height: 1em; }

/* terms checkbox */
.lg-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; font-size: .86rem; color: var(--lg-muted); line-height: 1.5; cursor: pointer; }
.lg-check input { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #cbd5e1; border-radius: 6px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s ease; }
.lg-check input:checked { background: var(--lg-blue); border-color: var(--lg-blue); }
.lg-check input:checked::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .65rem; color: #fff; animation: lgPopIn .25s ease; }
.lg-check input:focus-visible { box-shadow: 0 0 0 4px rgba(0, 113, 187, .18); }
.lg-check a { color: var(--lg-blue); font-weight: 600; text-decoration: none; }
.lg-check a:hover { text-decoration: underline; }
@keyframes lgPopIn { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* numbered steps in the brand panel (reset password) */
.lg-step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; position: relative; z-index: 1; opacity: 0; animation: lgSlideIn .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.lg-step:nth-of-type(1) { animation-delay: .55s; }
.lg-step:nth-of-type(2) { animation-delay: .75s; }
.lg-step:nth-of-type(3) { animation-delay: .95s; }
.lg-step .num { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.lg-step h4 { margin: 0 0 2px; font-size: .98rem; font-weight: 700; }
.lg-step p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .72); line-height: 1.5; }

/* success state (reset link sent / account created) */
.lg-success { text-align: center; padding: 8px 0 4px; animation: lgFade .5s ease both; }
.lg-success .tick { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 1.9rem; color: #fff; background: linear-gradient(135deg, #10b981, #12b5a6); box-shadow: 0 14px 28px -10px rgba(16, 185, 129, .6); animation: lgPopIn .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.lg-success h3 { margin: 0 0 6px; font-weight: 800; }
.lg-success p { color: var(--lg-muted); margin: 0 0 4px; line-height: 1.55; }

/* small inline link row */
.lg-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 18px; font-size: .9rem; }
.lg-links a { color: var(--lg-blue); font-weight: 600; text-decoration: none; }
.lg-links a:hover { text-decoration: underline; }
