/* Sign-in page. Plain CSS (no Tailwind rebuild needed); loaded after app.css. */
.lg-body { margin: 0; min-height: 100vh; background: #f4f6fb; color: #0f172a; font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
.lg-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* Brand panel */
.lg-hero {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 48px; color: #fff; overflow: hidden;
    background:
        linear-gradient(160deg, rgba(11, 23, 38, .92) 0%, rgba(26, 53, 142, .88) 60%, rgba(91, 33, 182, .85) 100%),
        url("../img/hero-store.jpg") center / cover no-repeat;
}
.lg-hero::after {
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 239, .35), transparent 70%);
}
.lg-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; text-decoration: none; }
.lg-hero-copy { position: relative; z-index: 1; max-width: 460px; }
.lg-hero-copy h2 { margin: 0 0 12px; font-size: 2rem; line-height: 1.2; font-weight: 700; color: #fff; }
.lg-hero-copy p { margin: 0 0 20px; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.lg-hero-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lg-hero-copy li { position: relative; padding-left: 28px; font-size: .95rem; color: rgba(255, 255, 255, .92); }
.lg-hero-copy li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.lg-hero small { position: relative; z-index: 1; color: rgba(255, 255, 255, .6); }

/* Form panel */
.lg-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 72px 24px 32px; }
.lg-back { position: absolute; top: 24px; left: 28px; font-size: .875rem; font-weight: 500; color: #475569; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.lg-back:hover { background: #e8ecf5; color: #1e5bf1; }
.lg-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid #e3e8f2; border-radius: 16px; padding: 32px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.lg-brand-mobile { display: none; color: #0b1726; margin-bottom: 16px; }
.lg-title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.lg-sub { margin: 0 0 20px; font-size: .9rem; color: #64748b; }

.lg-field { margin-bottom: 16px; }
.lg-field label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 600; color: #334155; }
.lg-input {
    display: block; width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px;
    border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}
.lg-input::placeholder { color: #94a3b8; }
.lg-input:focus { outline: none; border-color: #1e5bf1; box-shadow: 0 0 0 3px rgba(30, 91, 241, .18); }
.lg-input.is-error { border-color: #e11d48; }
.lg-pass { position: relative; }
.lg-pass .lg-input { padding-right: 46px; }
.lg-eye {
    position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center;
    border: 0; background: transparent; color: #64748b; cursor: pointer; border-radius: 0 10px 10px 0;
}
.lg-eye:hover { color: #1e5bf1; }
.lg-eye:focus-visible { outline: 2px solid #1e5bf1; outline-offset: -2px; }
.lg-eye .eye-off { display: none; }
.lg-eye.is-on .eye-on { display: none; }
.lg-eye.is-on .eye-off { display: block; }
.lg-caps { margin: 6px 0 0; font-size: .78rem; color: #b45309; }
.lg-caps[hidden] { display: none; }

.lg-submit {
    width: 100%; height: 46px; margin-top: 4px; border: 0; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #1e5bf1, #5b21b6); color: #fff; font-size: .95rem; font-weight: 600;
    box-shadow: 0 6px 16px rgba(30, 91, 241, .3); transition: transform .1s, box-shadow .15s, opacity .15s;
}
.lg-submit:hover { box-shadow: 0 8px 20px rgba(30, 91, 241, .4); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid rgba(30, 91, 241, .35); outline-offset: 2px; }
.lg-submit:disabled { opacity: .7; cursor: wait; }
.lg-help { margin: 16px 0 0; text-align: center; font-size: .8rem; color: #64748b; }

/* Tablet and phone: brand panel collapses into a compact header */
@media (max-width: 900px) {
    .lg-shell { grid-template-columns: 1fr; }
    .lg-hero { display: none; }
    .lg-brand-mobile { display: inline-flex; }
    .lg-panel { padding: 64px 16px 24px; align-items: flex-start; background: linear-gradient(180deg, #eef2ff 0%, #f4f6fb 40%); }
    .lg-card { padding: 24px 20px; box-shadow: 0 6px 20px rgba(15, 23, 42, .07); }
    .lg-back { left: 12px; }
}

@media (prefers-reduced-motion: reduce) { .lg-input, .lg-submit { transition: none; } }

/* Change-password page (reuses the sign-in look) */
.lg-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(180deg, #eef2ff 0%, #f4f6fb 45%); }
.lg-brand-show { display: inline-flex; }
.lg-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .85rem; line-height: 1.5; }
.lg-error { margin: 6px 0 0; font-size: .78rem; color: #e11d48; }
.lg-hint { margin: -4px 0 16px; font-size: .78rem; color: #64748b; }
.lg-cancel { display: block; margin-top: 12px; text-align: center; font-size: .875rem; font-weight: 500; color: #475569; text-decoration: none; }
.lg-cancel:hover { color: #1e5bf1; text-decoration: underline; }
