body:has(.lp) {
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
}

:root                { --lp-bg: #000000; --lp-label: #ffffff; }
[data-theme="light"] { --lp-bg: #edede8; --lp-label: #000000; }

.lp {
    display: flex;
    height: 100vh;
    background: var(--lp-bg);
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.lp-left {
    width: 48.75%;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    padding: 32px 94px;
    box-sizing: border-box;
}
.lp-theme-wrap {
    position: absolute;
    top: 17.5px;
    left: 17.5px;
    z-index: 10;
}

.lp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lp-logo-combined { height: 40px; width: auto; }

.lp-logo-light                          { display: none; }
html[data-theme="light"] .lp-logo-dark  { display: none; }
html[data-theme="light"] .lp-logo-light { display: block; }

.lp-form {
    display: flex;
    flex-direction: column;
    margin-top: 47px;
}

.lp-error-notice {
    background: rgba(220, 38, 38, .12);
    border: 1px solid rgba(220, 38, 38, .3);
    border-radius: 8px;
    padding: 8px 11px;
    margin-bottom: 14px;
    font-size: 13.5px;
    letter-spacing: -0.02em;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lp-label {
    display: block;
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--lp-label);
    margin-bottom: 10.5px;
}

.lp-field      { margin-bottom: 26px; }
.lp-field--pwd { margin-bottom: 0; }

.lp-pill {
    position: relative;
    height: 51.6px;
    background: #ffffff;
    border-radius: 25.8px;
    display: flex;
    align-items: center;
    transition: box-shadow .15s ease;
}
.lp-pill.is-error { box-shadow: 0 0 0 2px #ef4444; }

.lp-pill-icon {
    position: absolute;
    left: 28px;
    display: flex;
    align-items: center;
    color: #5ea84a;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.lp-pill input {
    position: absolute;
    inset: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 52px 0 56px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    border-radius: 25.8px;
    width: 100%;
    box-sizing: border-box;
}
.lp-pill input::placeholder {
    color: #bfbfbf;
    font-weight: 300;
}

.lp-eye {
    position: absolute;
    right: 9px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #bfbfbf;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    padding: 0;
    z-index: 2;
    transition: background .15s;
}
.lp-eye:hover { background: #9a9a9a; }

.lp-field-error {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 11.8px;
    letter-spacing: -0.02em;
    color: #ef4444;
    margin-top: 4px;
    padding-left: 13px;
}
.lp-field-error.visible { display: flex; }

.lp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
}

.lp-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.lp-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.lp-check-box {
    width: 11.6px;
    height: 11.6px;
    border-radius: 2.2px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lp-check-inner {
    width: 7.4px;
    height: 7.4px;
    border-radius: 1.4px;
    background: #5ea84a;
    opacity: 0;
    transition: opacity .1s;
}
.lp-check-input:checked + .lp-check-box .lp-check-inner { opacity: 1; }

.lp-check-text {
    font-size: 11.8px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--lp-label);
}

.lp-forgot {
    font-size: 11.8px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #5ea84a;
    text-decoration: none;
}
.lp-forgot:hover { text-decoration: underline; }

.lp-submit {
    height: 51.6px;
    background: #5ea84a;
    border: none;
    border-radius: 25.8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14.6px;
    font-weight: 700;
    letter-spacing: -0.02em;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    transition: filter .15s;
    overflow: hidden; /* clip the mask */
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-submit:hover  { filter: brightness(1.1); }
.lp-submit:active { filter: brightness(.93); }

.btn-text-mask {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 1em;
    line-height: 1;
}
.btn-text-mask > span {
    display: block;
    transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}
.btn-text-mask > span:nth-child(2) {
    position: absolute;
    top: 100%;
    left: 0;
}
.lp-submit:hover .btn-text-mask > span:first-child {
    transform: translateY(-100%);
}
.lp-submit:hover .btn-text-mask > span:nth-child(2) {
    transform: translateY(-100%);
}

.lp-footer {
    padding-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.lp-footer-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9.8px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: gray;
}

.lp-right {
    flex: 1;
    min-width: 0;
    padding: 17.5px 17.5px 17.5px 0;
    box-sizing: border-box;
}
.lp-panel {
    border-radius: 20px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #333;
}
.lp-panel-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    body:has(.lp) { overflow: auto; }
    .lp { height: auto; min-height: 100vh; }
    .lp-right { display: none; }
    .lp-left  { width: 100%; min-width: 0; padding: 40px clamp(24px, 8vw, 94px); }
    .lp-main  { max-width: 480px; margin-left: auto; margin-right: auto; width: 100%; }
}