body {
    background: #f5f5f5;
}

.login-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eef2ff 50%, #f5f5f5 100%);
}

.login-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .04), 0 25px 50px -12px rgba(0, 0, 0, .08);
    max-width: 1060px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .04);
}

/* ── Left Visual Panel ── */
.login-visual {
    background: url('https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?w=800&q=80') center/cover no-repeat;
    padding: 52px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(79, 70, 229, 0.85) 0%, rgba(99, 102, 241, 0.80) 40%, rgba(129, 140, 248, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
    pointer-events: none;
}

.login-visual::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, .10) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -60px;
    left: -40px;
    pointer-events: none;
    z-index: 2;
}

.lv-top {
    position: relative;
    z-index: 3;
}

.lv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.lv-top h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -.3px;
}

.lv-top p {
    font-size: 15px;
    opacity: .92;
    line-height: 1.7;
    max-width: 340px;
}

/* feature pills */
.lv-features {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.lv-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 14px 18px;
    transition: background .3s;
}

.lv-feat:hover {
    background: rgba(255, 255, 255, .16);
}

.lv-feat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.lv-feat-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.lv-feat-sub {
    font-size: 11px;
    opacity: .75;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* ── Right Form Panel ── */
.login-form-panel {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-panel h3 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.login-form-panel .lf-sub {
    color: #333333;
    font-size: 14px;
    margin-bottom: 28px;
}

/* inputs */
.lf-group {
    margin-bottom: 18px;
    position: relative;
}

.lf-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}

.lf-input-wrap {
    position: relative;
}

.lf-input-wrap i.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color .2s;
}

.lf-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: #f5f5f5;
    border: 1.5px solid #d0d0d0;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    transition: all .25s;
    font-family: inherit;
}

.lf-input.has-icon-right {
    padding-right: 44px;
}

.lf-input::placeholder {
    color: #94a3b8;
}

.lf-input:focus {
    outline: none;
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1);
}

.lf-input:focus+i.field-icon,
.lf-input-wrap:focus-within i.field-icon {
    color: #2563eb;
}

.lf-toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color .2s;
}

.lf-input-wrap i.field-icon,
.lf-toggle-pw i {
    line-height: 1;
}

.lf-toggle-pw:hover {
    color: #2563eb;
}

/* remember + forgot row */
.lf-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.lf-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lf-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
    border-radius: 4px;
}

.lf-check label {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.lf-forgot {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.lf-forgot:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* submit button */
.lf-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .3);
}

.lf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, .4);
}

.lf-btn:active {
    transform: translateY(0);
}

/* divider */
.lf-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.lf-divider::before,
.lf-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d0d0d0;
}

/* google button area */
.lf-google-wrap {
    margin-bottom: 24px;
}

/* bottom link */
.lf-bottom-link {
    text-align: center;
    font-size: 14px;
    color: #333333;
}

.lf-bottom-link a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.lf-bottom-link a:hover {
    text-decoration: underline;
}

/* error alert */
.lf-alert {
    background: #fef2f2;
    border: 1px solid #f0f0f0;
    color: #dc2626;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .login-visual {
        padding: 36px 30px;
        min-height: auto;
    }

    .lv-features {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lv-feat {
        flex: 1;
        min-width: 140px;
    }

    .lv-top h2 {
        font-size: 24px;
    }

    .login-form-panel {
        padding: 36px 30px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 20px 12px;
    }

    .login-visual {
        padding: 28px 22px;
    }

    .lv-features {
        display: none;
    }

    .login-form-panel {
        padding: 28px 22px;
    }

    .lf-actions-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}