/* Login page — self-contained, no accounting.css dependency */

.lp-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f8fbff;
}

/* ── Brand panel ─────────────────────────────────────────────────────────── */
.lp-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, .35), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(15, 118, 110, .28), transparent 45%),
        linear-gradient(145deg, #1d4ed8 0%, #2563eb 42%, #0f766e 100%);
    color: #fff;
}

.lp-login-brand__glow {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.lp-login-brand__inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.lp-login-brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}

.lp-login-brand__logo:hover {
    opacity: .92;
}

.lp-login-brand__logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
}

.lp-login-brand__logo-mark span {
    position: absolute;
    width: 18px;
    height: 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    transform: rotate(-24deg);
}

.lp-login-brand__logo-mark span:nth-child(1) { top: 12px; }
.lp-login-brand__logo-mark span:nth-child(2) { top: 18px; opacity: .84; }
.lp-login-brand__logo-mark span:nth-child(3) { top: 24px; opacity: .68; }

.lp-login-brand__title {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.lp-login-brand__text {
    margin: 0 0 36px;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .88);
}

.lp-login-brand__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lp-login-brand__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .92);
}

.lp-login-brand__features li::before {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ── Form panel ──────────────────────────────────────────────────────────── */
.lp-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 50%),
        #f8fbff;
}

.lp-login-card {
    width: 100%;
    max-width: 400px;
}

.lp-login-card__mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--lp-ink, #0f172a);
    text-decoration: none;
}

.lp-login-card__head {
    margin-bottom: 28px;
}

.lp-login-card__head h1 {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--lp-ink, #0f172a);
    letter-spacing: -.02em;
}

.lp-login-card__head p {
    margin: 0;
    font-size: .95rem;
    color: var(--lp-muted, #64748b);
    line-height: 1.6;
}

.lp-login-alert {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: .9rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.lp-login-field {
    margin-bottom: 18px;
}

.lp-login-field label {
    display: block;
    margin-bottom: 7px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--lp-ink, #0f172a);
}

.lp-login-field input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1.5px solid var(--lp-border, #dbe5f1);
    border-radius: 12px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--lp-ink, #0f172a);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.lp-login-field input::placeholder {
    color: #94a3b8;
}

.lp-login-field input:focus {
    outline: none;
    border-color: var(--lp-primary, #2563eb);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.lp-login-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
}

.lp-login-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    font-size: .88rem;
    color: var(--lp-muted, #64748b);
    cursor: pointer;
    user-select: none;
}

.lp-login-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--lp-primary, #2563eb);
    cursor: pointer;
}

.lp-login-submit {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--lp-primary, #2563eb), var(--lp-primary-dark, #1d4ed8));
    box-shadow: 0 10px 28px rgba(37, 99, 235, .28);
    transition: transform .15s, box-shadow .15s;
}

.lp-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, .34);
}

.lp-login-submit:active {
    transform: translateY(0);
}

.lp-login-back {
    margin: 24px 0 0;
    text-align: center;
    font-size: .88rem;
}

.lp-login-back a {
    color: var(--lp-muted, #64748b);
    text-decoration: none;
    transition: color .15s;
}

.lp-login-back a:hover {
    color: var(--lp-primary, #2563eb);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lp-login-page {
        grid-template-columns: 1fr;
    }

    .lp-login-brand {
        display: none;
    }

    .lp-login-card__mobile-logo {
        display: inline-flex;
    }

    .lp-login-panel {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 48px;
    }
}

@media (max-width: 480px) {
    .lp-login-panel {
        padding: 24px 16px 40px;
    }

    .lp-login-card__head h1 {
        font-size: 1.45rem;
    }
}
